AppFunctionManager.IsAppFunctionEnabled 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| Name | Description |
|---|---|
| IsAppFunctionEnabled(String, IExecutor, IOutcomeReceiver) |
앱 함수를 사용할 수 있는지 여부를 나타내는 콜백을 통해 부울을 반환합니다. |
| IsAppFunctionEnabled(String, String, IExecutor, IOutcomeReceiver) |
앱 함수를 사용할 수 있는지 여부를 나타내는 콜백을 통해 부울을 반환합니다. |
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>
이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.
적용 대상
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)]
[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
매개 변수
- functionIdentifier
- String
확인할 앱 함수의 식별자(대상 패키지 내에서 고유) 대부분의 경우 AppFunctions SDK에 의해 자동으로 생성됩니다.
- targetPackage
- String
앱 함수 소유자의 패키지 이름
- executor
- IExecutor
요청을 실행할 실행기
- callback
- IOutcomeReceiver
함수 사용 확인 결과를 받을 콜백
- 특성
설명
앱 함수를 사용할 수 있는지 여부를 나타내는 콜백을 통해 부울을 반환합니다.
이 메서드는 호출자가 소유한 앱 함수 또는 호출자가 소유자 패키지에 대한 가시성을 가지며 사용 권한을 보유 Manifest.permission#EXECUTE_APP_FUNCTIONS 하는 함수만 확인할 수 있습니다.
작업이 실패하면 콜백 OutcomeReceiver#onError 이 오류와 함께 호출됩니다.
<함수를 찾을 수 없거나 호출자가 함수에 액세스할 수 없는 경우 ul><li>IllegalArgumentException입니다.
</ul>
이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.