|
|
@@ -50,6 +50,7 @@
|
|
|
"actions": [
|
|
|
"action.system.home",
|
|
|
"ohos.want.action.viewData",
|
|
|
+ "ohos.want.action.sendData"
|
|
|
],
|
|
|
"uris": [
|
|
|
|
|
|
@@ -64,18 +65,21 @@
|
|
|
"utd":"general.video",
|
|
|
"linkFeature": "FileOpen",
|
|
|
},
|
|
|
- {
|
|
|
- "scheme": "file",
|
|
|
- "type": "audio/*",
|
|
|
- "linkFeature": "FileOpen",
|
|
|
- "maxFileSupported": 1
|
|
|
- },
|
|
|
- {
|
|
|
- "scheme": "file",
|
|
|
- "type": "video/*",
|
|
|
- "linkFeature": "FileOpen",
|
|
|
- "maxFileSupported": 1
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+// {
|
|
|
+// "scheme": "file",
|
|
|
+// "type": "audio/*",
|
|
|
+// "linkFeature": "FileOpen",
|
|
|
+// "maxFileSupported": 1
|
|
|
+// },
|
|
|
+// {
|
|
|
+// "scheme": "file",
|
|
|
+// "type": "video/*",
|
|
|
+// "linkFeature": "FileOpen",
|
|
|
+// "maxFileSupported": 1
|
|
|
+// }
|
|
|
],
|
|
|
"entities": [
|
|
|
"entity.system.home"
|
|
|
@@ -84,57 +88,58 @@
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- {
|
|
|
- "name": "ShareUIAbility",
|
|
|
- "srcEntry": "./ets/entryability/ShareUIAbility.ets",
|
|
|
- "description": "$string:EntryAbility_desc",
|
|
|
- "icon": "$media:icon",
|
|
|
- "label": "$string:EntryAbility_label",
|
|
|
- "startWindowIcon": "$media:icon",
|
|
|
- "startWindowBackground": "$color:start_window_background",
|
|
|
- "orientation": "portrait",
|
|
|
- "exported": true,
|
|
|
- "backgroundModes": [
|
|
|
- // 长时任务类型的配置项
|
|
|
- "audioPlayback"
|
|
|
- ],
|
|
|
- "skills": [
|
|
|
- {
|
|
|
- "actions": [
|
|
|
- "ohos.want.action.sendData",
|
|
|
- "ohos.want.action.viewData"
|
|
|
- ],
|
|
|
-
|
|
|
- // 目标应用在配置支持接收的数据类型时,需穷举支持的UTD,比如:支持全部图片类型,可声明:general.image
|
|
|
- // maxFileSupported 对于归属指定类型的文件,标识一次支持接收的最大数量。默认为0,代表不支持此类文件的分享。文件类型归属关系参考:@ohos.data.uniformTypeDescriptor (标准化数据定义与描述)
|
|
|
- "uris": [
|
|
|
-
|
|
|
+// {
|
|
|
+// "name": "ShareUIAbility",
|
|
|
+// "srcEntry": "./ets/entryability/ShareUIAbility.ets",
|
|
|
+// "description": "$string:EntryAbility_desc",
|
|
|
+// "icon": "$media:icon",
|
|
|
+// "label": "$string:EntryAbility_label",
|
|
|
+// "startWindowIcon": "$media:icon",
|
|
|
+// "startWindowBackground": "$color:start_window_background",
|
|
|
+// "orientation": "portrait",
|
|
|
+// "exported": true,
|
|
|
+// "backgroundModes": [
|
|
|
+// // 长时任务类型的配置项
|
|
|
+// "audioPlayback"
|
|
|
+// ],
|
|
|
+// "skills": [
|
|
|
+// {
|
|
|
+// "actions": [
|
|
|
+// "ohos.want.action.sendData",
|
|
|
+// ],
|
|
|
+//
|
|
|
+// // 目标应用在配置支持接收的数据类型时,需穷举支持的UTD,比如:支持全部图片类型,可声明:general.image
|
|
|
+// // maxFileSupported 对于归属指定类型的文件,标识一次支持接收的最大数量。默认为0,代表不支持此类文件的分享。文件类型归属关系参考:@ohos.data.uniformTypeDescriptor (标准化数据定义与描述)
|
|
|
+// "uris": [
|
|
|
+//
|
|
|
// {
|
|
|
// "scheme": "file",
|
|
|
// "utd": "general.audio",
|
|
|
// "linkFeature": "FileOpen"
|
|
|
// },
|
|
|
- {
|
|
|
- "scheme": "file",
|
|
|
- "type": "audio/*",
|
|
|
- "linkFeature": "FileOpen",
|
|
|
- "maxFileSupported": 1
|
|
|
- },
|
|
|
- {
|
|
|
- "scheme": "file",
|
|
|
- "type": "video/*",
|
|
|
- "linkFeature": "FileOpen",
|
|
|
- "maxFileSupported": 1
|
|
|
- },
|
|
|
+// {
|
|
|
+// "scheme": "file",
|
|
|
+// "type": "audio/*",
|
|
|
+// "linkFeature": "FileOpen",
|
|
|
+// "maxFileSupported": 1
|
|
|
+// },
|
|
|
+
|
|
|
+
|
|
|
+// {
|
|
|
+// "scheme": "file",
|
|
|
+// "type": "video/*",
|
|
|
+// "linkFeature": "FileOpen",
|
|
|
+// "maxFileSupported": 1
|
|
|
+// },
|
|
|
// {
|
|
|
// "scheme": "file",
|
|
|
// "utd":"general.video",
|
|
|
// "linkFeature": "FileOpen"
|
|
|
// }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
+// ]
|
|
|
+// }
|
|
|
+// ]
|
|
|
+// }
|
|
|
|
|
|
],
|
|
|
|