AppFunctionManager.SetAppFunctionEnabled 메서드

정의

호출 패키지가 소유한 앱 함수의 사용 상태를 설정합니다.

[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

매개 변수

functionIdentifier
String

사용하도록 설정할 앱 함수의 식별자입니다(호출 패키지 내에서 고유). 대부분의 경우 식별자는 AppFunctions SDK에 의해 자동으로 생성됩니다.

newEnabledState
AppFunctionState

앱 함수의 새 상태

executor
IExecutor

콜백을 실행할 실행기

callback
IOutcomeReceiver

함수 사용의 결과를 받을 콜백입니다. 예외가 throw되지 않은 경우 호출이 성공했습니다.

특성

설명

호출 패키지가 소유한 앱 함수의 사용 상태를 설정합니다.

작업이 실패하면 콜백 OutcomeReceiver#onError 이 오류와 함께 호출됩니다.

<함수를 찾을 수 없거나 호출자가 함수에 액세스할 수 없는 경우 ul><li>IllegalArgumentException입니다. </ul>

에 대한 android.app.appfunctions.AppFunctionManager.setAppFunctionEnabled(java.lang.String, int, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Void, java.lang.Exception>)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상