Language

DeviceAdminReceiver.OnUserSwitched(Context, Intent, UserHandle) メソッド

定義

ユーザーまたはプロファイルの切り替えが行われるときに呼び出されます。

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

パラメーター

context
Context

#onReceiveに従った実行中のコンテキスト。

intent
Intent

#onReceiveに従って受信した意図。

switchedUser
UserHandle

切り替えたばかりのユーザーの UserHandle 。

属性

注釈

ユーザーまたはプロファイルの切り替えが行われるときに呼び出されます。

このコールバックは、デバイス所有者にのみ適用されます。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象