语言

AppFunctionManager.IsAppFunctionEnabled 方法

定义

重载

名称 说明
IsAppFunctionEnabled(String, String, IExecutor, IOutcomeReceiver)

通过回调返回布尔值,指示是否启用应用函数。

IsAppFunctionEnabled(String, IExecutor, IOutcomeReceiver)

通过回调返回布尔值,指示是否启用应用函数。

IsAppFunctionEnabled(String, String, IExecutor, IOutcomeReceiver)

通过回调返回布尔值,指示是否启用应用函数。

[Android.Runtime.Register("isAppFunctionEnabled", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)]
public void IsAppFunctionEnabled(string functionIdentifier, string targetPackage, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("isAppFunctionEnabled", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)>]
member this.IsAppFunctionEnabled : string * string * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

参数

functionIdentifier
String

要检查的应用函数的标识符(目标包中唯一),在大多数情况下,这些标识符由 AppFunctions SDK 自动生成

targetPackage
String

应用函数所有者的包名称

executor
IExecutor

运行请求的执行程序

callback
IOutcomeReceiver

用于接收已启用函数的检查结果的回调

特性

注解

通过回调返回布尔值,指示是否启用应用函数。

此方法只能检查调用方拥有的应用函数,或者调用方能够查看所有者包并保留权限的应用 Manifest.permission#EXECUTE_APP_FUNCTIONS 函数。

如果操作失败,将调用回调 OutcomeReceiver#onError 并显示错误:

<如果找不到函数,或者调用方无权访问它,则为 ul><li>IllegalArgumentException。 </ul>

Java文档android.app.appfunctions.AppFunctionManager.isAppFunctionEnabled(java.lang.String, java.lang.String, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Boolean, java.lang.Exception>)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

IsAppFunctionEnabled(String, IExecutor, IOutcomeReceiver)

通过回调返回布尔值,指示是否启用应用函数。

[Android.Runtime.Register("isAppFunctionEnabled", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)]
public void IsAppFunctionEnabled(string functionIdentifier, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("isAppFunctionEnabled", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)>]
member this.IsAppFunctionEnabled : string * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

参数

functionIdentifier
String

要检查的应用函数的标识符(目标包中唯一),在大多数情况下,这些标识符由 AppFunctions SDK 自动生成

executor
IExecutor

运行请求的执行程序

callback
IOutcomeReceiver

用于接收已启用函数的检查结果的回调

特性

注解

通过回调返回布尔值,指示是否启用应用函数。

此方法只能检查调用方拥有的应用函数,这与允许指定其他目标包不同 #isAppFunctionEnabled(String, String, Executor, OutcomeReceiver)。

如果操作失败,将调用回调 OutcomeReceiver#onError 并显示错误:

<如果找不到函数,或者调用方无权访问它,则为 ul><li>IllegalArgumentException。 </ul>

Java文档android.app.appfunctions.AppFunctionManager.isAppFunctionEnabled(java.lang.String, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Boolean, java.lang.Exception>)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于