AppFunctionManager.IsAppFunctionEnabled Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IsAppFunctionEnabled(String, IExecutor, IOutcomeReceiver) |
Returns a boolean through a callback, indicating whether the app function is enabled. |
IsAppFunctionEnabled(String, String, IExecutor, IOutcomeReceiver) |
Returns a boolean through a callback, indicating whether the app function is enabled. |
IsAppFunctionEnabled(String, IExecutor, IOutcomeReceiver)
Returns a boolean through a callback, indicating whether the app function is enabled.
[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
Parameters
- functionIdentifier
- String
the identifier of the app function to check (unique within the target package) and in most cases, these are automatically generated by the AppFunctions SDK
- executor
- IExecutor
the executor to run the request
- callback
- IOutcomeReceiver
the callback to receive the function enabled check result
- Attributes
Remarks
Returns a boolean through a callback, indicating whether the app function is enabled.
This method can only check app functions owned by the caller, unlike #isAppFunctionEnabled(String, String, Executor, OutcomeReceiver)
, which allows specifying a different target package.
If the operation fails, the callback's OutcomeReceiver#onError
is called with errors:
<ul> <li>IllegalArgumentException
, if the function is not found or the caller does not have access to it. </ul>
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
IsAppFunctionEnabled(String, String, IExecutor, IOutcomeReceiver)
Returns a boolean through a callback, indicating whether the app function is enabled.
[Android.Runtime.Register("isAppFunctionEnabled", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)]
[Android.Runtime.RequiresPermission("android.permission.EXECUTE_APP_FUNCTIONS")]
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)>]
[<Android.Runtime.RequiresPermission("android.permission.EXECUTE_APP_FUNCTIONS")>]
member this.IsAppFunctionEnabled : string * string * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
Parameters
- functionIdentifier
- String
the identifier of the app function to check (unique within the target package) and in most cases, these are automatically generated by the AppFunctions SDK
- targetPackage
- String
the package name of the app function's owner
- executor
- IExecutor
the executor to run the request
- callback
- IOutcomeReceiver
the callback to receive the function enabled check result
- Attributes
Remarks
Returns a boolean through a callback, indicating whether the app function is enabled.
This method can only check app functions owned by the caller, or those where the caller has visibility to the owner package and holds the Manifest.permission#EXECUTE_APP_FUNCTIONS
permission.
If the operation fails, the callback's OutcomeReceiver#onError
is called with errors:
<ul> <li>IllegalArgumentException
, if the function is not found or the caller does not have access to it. </ul>
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.