語言

AppFunctionManager.IsAppFunctionEnabled 方法

定義

多載

名稱 Description
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>)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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>)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於