語言

DeviceAdminReceiver.OnUserRemoved(Context, Intent, UserHandle) 方法

定義

當使用者或個人檔案被移除時會呼叫。

[Android.Runtime.Register("onUserRemoved", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnUserRemoved_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)]
public virtual void OnUserRemoved(Android.Content.Context context, Android.Content.Intent intent, Android.OS.UserHandle removedUser);
[<Android.Runtime.Register("onUserRemoved", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnUserRemoved_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)>]
abstract member OnUserRemoved : Android.Content.Context * Android.Content.Intent * Android.OS.UserHandle -> unit
override this.OnUserRemoved : Android.Content.Context * Android.Content.Intent * Android.OS.UserHandle -> unit

參數

context
Context

運行上下文如下 #onReceive。

intent
Intent

接收意圖如下 #onReceive。

removedUser
UserHandle

剛剛被移除的使用者。UserHandle

屬性

備註

當使用者或個人檔案被移除時會呼叫。

此回調僅適用於裝置擁有者。

Java 文件 android.app.admin.DeviceAdminReceiver.onUserRemoved(android.content.Context, android.content.Intent, android.os.UserHandle)。

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

適用於