AppFunctionManager.SetAppFunctionEnabled 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
호출 패키지가 소유한 앱 함수의 사용 상태를 설정합니다.
[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>
이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.