AppFunctionManager.SetAppFunctionEnabled 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.
Sets the enabled state of the app function owned by the calling package.
[Android.Runtime.Register("setAppFunctionEnabled", "(Ljava/lang/String;ILjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)]
public void SetAppFunctionEnabled(string functionIdentifier, Android.App.AppFunctions.AppFunctionState newEnabledState, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("setAppFunctionEnabled", "(Ljava/lang/String;ILjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)>]
member this.SetAppFunctionEnabled : string * Android.App.AppFunctions.AppFunctionState * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
Parameters
- functionIdentifier
- String
the identifier of the app function to enable (unique within the calling package). In most cases, identifiers are automatically generated by the AppFunctions SDK
- newEnabledState
- AppFunctionState
the new state of the app function
- executor
- IExecutor
the executor to run the callback
- callback
- IOutcomeReceiver
the callback to receive the result of the function enablement. The call was successful if no exception was thrown.
- Attributes
Remarks
Sets the enabled state of the app function owned by the calling package.
If 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.