語言

DeviceLockManager.GetDeviceId(IExecutor, IOutcomeReceiver) 方法

定義

取得裝置 ID。

[Android.Runtime.Register("getDeviceId", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_LOCK_STATE")]
public void GetDeviceId(Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("getDeviceId", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_LOCK_STATE")>]
member this.GetDeviceId : Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

參數

executor
IExecutor

該 Executor 回調的對象。

callback
IOutcomeReceiver

此時會回傳 或 DeviceId 例外。

屬性

備註

取得裝置識別碼。

Java 文件 android.devicelock.DeviceLockManager.getDeviceId(java.util.concurrent.Executor, android.os.OutcomeReceiver<android.devicelock.DeviceId, java.lang.Exception>)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於