change name
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"id": "XF-cameraUTS",
|
"id": "My-cameraUTS",
|
||||||
"displayName": "UTS实现自定义相机拍照和录像功能",
|
"displayName": "UTS实现自定义相机拍照和录像功能",
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"description": "XF-cameraUTS封装了Android和iOS自定义相机预览的功能。",
|
"description": "MY-cameraUTS封装了Android和iOS自定义相机预览的功能。",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"相机",
|
"相机",
|
||||||
"录像",
|
"录像",
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
# **概述**
|
# **概述**
|
||||||
|
|
||||||
XF-cameraUTS封装了Android和iOS自定义相机预览的功能。
|
MY-cameraUTS封装了Android和iOS自定义相机预览的功能。
|
||||||
|
|
||||||
## **模块调用**
|
## **模块调用**
|
||||||
|
|
||||||
```js
|
```js
|
||||||
<xf-camera style="height:750rpx; background-color: red;" @ready="ready" @error="onError" @stop="stop" :flash="flash" :position="device">
|
<my-camera style="height:750rpx; background-color: red;" @ready="ready" @error="onError" @stop="stop" :flash="flash" :position="device">
|
||||||
</xf-camera>
|
</my-camera>
|
||||||
```
|
```
|
||||||
|
|
||||||
## 参数说明:
|
## 参数说明:
|
||||||
@@ -33,7 +33,7 @@ flash:
|
|||||||
## uni-app项目中(nvue)调用示例:
|
## uni-app项目中(nvue)调用示例:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { takePhoto } from "@/uni_modules/XF-cameraUTS"
|
import { takePhoto } from "@/uni_modules/MY-cameraUTS"
|
||||||
|
|
||||||
takePhoto({
|
takePhoto({
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
@@ -45,8 +45,8 @@ takePhoto({
|
|||||||
## uni-app x项目(uvue)中调用示例:
|
## uni-app x项目(uvue)中调用示例:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { takePhoto } from "@/uni_modules/XF-cameraUTS";
|
import { takePhoto } from "@/uni_modules/MY-cameraUTS";
|
||||||
import { TakePhotoOption, TakePhotoSuccessCallbackResult } from "@/uni_modules/XF-cameraUTS/utssdk/interface.uts";
|
import { TakePhotoOption, TakePhotoSuccessCallbackResult } from "@/uni_modules/MY-cameraUTS/utssdk/interface.uts";
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
success: (res : TakePhotoSuccessCallbackResult) => {
|
success: (res : TakePhotoSuccessCallbackResult) => {
|
||||||
@@ -72,7 +72,7 @@ iOS、Android系统
|
|||||||
## uni-app项目中(nvue)调用示例:
|
## uni-app项目中(nvue)调用示例:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { startRecord } from "@/uni_modules/XF-cameraUTS"
|
import { startRecord } from "@/uni_modules/MY-cameraUTS"
|
||||||
|
|
||||||
startRecord({
|
startRecord({
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
@@ -84,8 +84,8 @@ startRecord({
|
|||||||
## uni-app x项目(uvue)中调用示例:
|
## uni-app x项目(uvue)中调用示例:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { startRecord } from "@/uni_modules/XF-cameraUTS";
|
import { startRecord } from "@/uni_modules/MY-cameraUTS";
|
||||||
import { CameraContextStartRecordOption, GeneralCallbackResult } from "@/uni_modules/XF-cameraUTS/utssdk/interface.uts";
|
import { CameraContextStartRecordOption, GeneralCallbackResult } from "@/uni_modules/MY-cameraUTS/utssdk/interface.uts";
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
success: (res : GeneralCallbackResult) => {
|
success: (res : GeneralCallbackResult) => {
|
||||||
@@ -112,7 +112,7 @@ iOS、Android系统
|
|||||||
## uni-app项目中(nvue)调用示例:
|
## uni-app项目中(nvue)调用示例:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { stopRecord } from "@/uni_modules/XF-cameraUTS"
|
import { stopRecord } from "@/uni_modules/MY-cameraUTS"
|
||||||
|
|
||||||
stopRecord({
|
stopRecord({
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
@@ -124,8 +124,8 @@ stopRecord({
|
|||||||
## uni-app x项目(uvue)中调用示例:
|
## uni-app x项目(uvue)中调用示例:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { stopRecord } from "@/uni_modules/XF-cameraUTS";
|
import { stopRecord } from "@/uni_modules/MY-cameraUTS";
|
||||||
import { CameraContextStopRecordOption, StopRecordSuccessCallbackResult } from "@/uni_modules/XF-cameraUTS/utssdk/interface.uts";
|
import { CameraContextStopRecordOption, StopRecordSuccessCallbackResult } from "@/uni_modules/MY-cameraUTS/utssdk/interface.uts";
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
success: (res : StopRecordSuccessCallbackResult) => {
|
success: (res : StopRecordSuccessCallbackResult) => {
|
||||||
@@ -151,7 +151,7 @@ iOS、Android系统
|
|||||||
## uni-app项目中(nvue)调用示例:
|
## uni-app项目中(nvue)调用示例:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { switchCamera } from "@/uni_modules/XF-cameraUTS"
|
import { switchCamera } from "@/uni_modules/MY-cameraUTS"
|
||||||
|
|
||||||
switchCamera({
|
switchCamera({
|
||||||
position: 'back',
|
position: 'back',
|
||||||
@@ -164,8 +164,8 @@ switchCamera({
|
|||||||
## uni-app x项目(uvue)中调用示例:
|
## uni-app x项目(uvue)中调用示例:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { switchCamera } from "@/uni_modules/XF-cameraUTS";
|
import { switchCamera } from "@/uni_modules/MY-cameraUTS";
|
||||||
import { SwitchOption, GeneralCallbackResult } from "@/uni_modules/XF-cameraUTS/utssdk/interface.uts";
|
import { SwitchOption, GeneralCallbackResult } from "@/uni_modules/MY-cameraUTS/utssdk/interface.uts";
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
position: 'back',
|
position: 'back',
|
||||||
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
/**
|
/**
|
||||||
* 组件名称,也就是开发者使用的标签
|
* 组件名称,也就是开发者使用的标签
|
||||||
*/
|
*/
|
||||||
name: "xf-camera",
|
name: "my-camera",
|
||||||
/**
|
/**
|
||||||
* 组件涉及的事件声明,只有声明过的事件,才能被正常发送
|
* 组件涉及的事件声明,只有声明过的事件,才能被正常发送
|
||||||
*/
|
*/
|
||||||
+1
-1
@@ -17,7 +17,7 @@
|
|||||||
/**
|
/**
|
||||||
* 组件名称,也就是开发者使用的标签
|
* 组件名称,也就是开发者使用的标签
|
||||||
*/
|
*/
|
||||||
name: "xf-camera",
|
name: "my-camera",
|
||||||
/**
|
/**
|
||||||
* 组件涉及的事件声明,只有声明过的事件,才能被正常发送
|
* 组件涉及的事件声明,只有声明过的事件,才能被正常发送
|
||||||
*/
|
*/
|
||||||
Reference in New Issue
Block a user