语言

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

定义

停止用户或配置文件时调用。

[Android.Runtime.Register("onUserStopped", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnUserStopped_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=28)]
public virtual void OnUserStopped(Android.Content.Context context, Android.Content.Intent intent, Android.OS.UserHandle stoppedUser);
[<Android.Runtime.Register("onUserStopped", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnUserStopped_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=28)>]
abstract member OnUserStopped : Android.Content.Context * Android.Content.Intent * Android.OS.UserHandle -> unit
override this.OnUserStopped : Android.Content.Context * Android.Content.Intent * Android.OS.UserHandle -> unit

参数

context
Context

按以下情况 #onReceive运行上下文。

intent
Intent

接收的意向按 #onReceive.

stoppedUser
UserHandle

UserHandle刚刚停止的用户。

特性

注解

停止用户或配置文件时调用。

此回调仅适用于设备所有者。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于