Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
5d16c7eb
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5d16c7eb
编写于
5月 08, 2023
作者:
Z
zhaolinglan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add api restriction for InputMethodExtensionAbility
Signed-off-by:
N
zhaolinglan
<
zhaolinglan@huawei.com
>
上级
e6123174
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
32 addition
and
32 deletion
+32
-32
zh-cn/application-dev/application-models/inputmethodextentionability.md
...ion-dev/application-models/inputmethodextentionability.md
+32
-32
未找到文件。
zh-cn/application-dev/application-models/inputmethodextentionability.md
浏览文件 @
5d16c7eb
...
...
@@ -363,38 +363,38 @@ InputMethodExtensionAbility通过[InputMethodExtensionContext](../reference/apis
## 限制
为了降低InputMethodExtensionAbility能力被三方应用滥用的风险,在InputMethodExtensionAbility中限制
以下接口的调用:
-
[
@ohos.ability.featureAbility.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.ability.featureAbility.d.ts
)
-
[
@ohos.ability.particleAbility.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.ability.particleAbility.d.ts
)
-
[
@ohos.a
ccount.distributedAccount.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.account.distributedAccount.d.ts
)
-
[
@ohos.a
ccount.osAccount.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.account.osAccount.d.ts
)
-
[
@ohos.
backgroundTaskManager.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.backgroundTaskManager.d.ts
)
-
[
@ohos.b
luetooth.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.bluetooth.d.ts
)
-
[
@ohos.bluetooth
Manager.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.bluetoothManager.d.ts
)
-
[
@ohos.
connectedTag.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.connectedTag.d.ts
)
-
[
@ohos.
geolocation.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.geolocation.d.ts
)
-
[
@ohos.geo
LocationManager.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.geoLocationManager.d.ts
)
-
[
@ohos.
nfc.cardEmulation.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.nfc.cardEmulation.d.ts
)
-
[
@ohos.nfc.c
ontroller.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.nfc.controller.d.ts
)
-
[
@ohos.nfc.
tag.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.nfc.tag.d.ts
)
-
[
@ohos.
reminderAgent.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.reminderAgent.d.ts
)
-
[
@ohos.reminderAgent
Manager.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.reminderAgentManager.d.ts
)
-
[
@ohos.
sensor.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.sensor.d.ts
)
-
[
@ohos.
telephony.call.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.telephony.call.d.ts
)
-
[
@ohos.telephony.
data.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.telephony.data.d.ts
)
-
[
@ohos.telephony.
observer.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.telephony.observer.d.ts
)
-
[
@ohos.telephony.
radio.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.telephony.radio.d.ts
)
-
[
@ohos.telephony.
sim.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.telephony.sim.d.ts
)
-
[
@ohos.telephony.s
ms.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.telephony.sms.d.ts
)
-
[
@ohos.
wallpaper.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.wallpaper.d.ts
)
-
[
@ohos.w
ifiext.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.wifiext.d.ts
)
-
[
@ohos.wifi
Manager.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.wifiManager.d.ts
)
-
[
@ohos.wifiManager
Ext.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@ohos.wifiManagerExt.d.ts
)
-
[
@
system.geolocation.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@system.geolocation.d.ts
)
-
[
@system.
sensor.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/@system.sensor.d.ts
)
-
[
nfctech
.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/tag/nfctech.d.ts
)
-
[
tagSession
.d.ts
](
https://gitee.com/openharmony/interface_sdk-js/tree/master/api/tag/tagSession.d.ts
)
为了降低InputMethodExtensionAbility能力被三方应用滥用的风险,在InputMethodExtensionAbility中限制
调用以下模块中的接口。
**注意:**
若导入被限制的API,在编译时不报错,在运行时会返回错误的值,即undefined,导致不生效。
-
[
@ohos.a
bility.featureAbility (FeatureAbility模块)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-ability-featureAbility.md
)
-
[
@ohos.a
bility.particleAbility (ParticleAbility模块)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-ability-particleAbility.md
)
-
[
@ohos.
account.distributedAccount (分布式帐号管理)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md
)
-
[
@ohos.b
ackgroundTaskManager (后台任务管理)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-backgroundTaskManager.md
)
-
[
@ohos.bluetooth
(蓝牙)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-bluetooth.md
)
-
[
@ohos.
bluetoothManager (蓝牙)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-bluetoothManager.md
)
-
[
@ohos.
connectedTag (有源标签)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-connectedTag.md
)
-
[
@ohos.geo
location (位置服务)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-geolocation.md
)
-
[
@ohos.
geoLocationManager (位置服务)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-geoLocationManager.md
)
-
[
@ohos.nfc.c
ardEmulation (标准NFC-cardEmulation)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md
)
-
[
@ohos.nfc.
controller (标准NFC)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-nfcController.md
)
-
[
@ohos.
nfc.tag (标准NFC-Tag)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md
)
-
[
@ohos.reminderAgent
(后台代理提醒)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-reminderAgent.md
)
-
[
@ohos.
reminderAgentManager (后台代理提醒)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-reminderAgentManager.md
)
-
[
@ohos.
sensor (传感器)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-sensor.md
)
-
[
@ohos.telephony.
call (拨打电话)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-call.md
)
-
[
@ohos.telephony.
data (蜂窝数据)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-telephony-data.md
)
-
[
@ohos.telephony.
observer (observer)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-observer.md
)
-
[
@ohos.telephony.
radio (网络搜索)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-radio.md
)
-
[
@ohos.telephony.s
im (SIM卡管理)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-sim.md
)
-
[
@ohos.
telephony.sms (短信服务)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-sms.md
)
-
[
@ohos.w
allpaper (壁纸)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md
)
-
[
@ohos.wifi
ext (WLAN扩展接口)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-wifiext.md
)
-
[
@ohos.wifiManager
(WLAN)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-wifiManager.md
)
-
[
@
ohos.wifiManagerExt (WLAN扩展接口)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-wifiManagerExt.md
)
-
[
@system.
geolocation (地理位置)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-system-location.md
)
-
[
nfctech
(标准NFC-Tag Nfc 技术)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-nfctech.md
)
-
[
tagSession
(标准NFC-Tag TagSession)
](
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-tagSession.md
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录