Share via


CrossProfileApps.ActionCanInteractAcrossProfilesChanged Field

Definition

Broadcast signalling that the receiving app's permission to interact across profiles has changed.

[Android.Runtime.Register("ACTION_CAN_INTERACT_ACROSS_PROFILES_CHANGED", ApiSince=30)]
public const string ActionCanInteractAcrossProfilesChanged;
[<Android.Runtime.Register("ACTION_CAN_INTERACT_ACROSS_PROFILES_CHANGED", ApiSince=30)>]
val mutable ActionCanInteractAcrossProfilesChanged : string

Field Value

Attributes

Remarks

Broadcast signalling that the receiving app's permission to interact across profiles has changed. This includes the user, admin, or OEM changing their consent such that the permission for the app to interact across profiles has changed.

This broadcast is not sent when other circumstances result in a change to being able to interact across profiles in practice, such as the profile being turned off or removed, apps being uninstalled, etc. The methods #canInteractAcrossProfiles() and #canRequestInteractAcrossProfiles() can be used by apps prior to attempting to interact across profiles or attempting to request user consent to interact across profiles.

Apps that have set the android:crossProfile manifest attribute to true can receive this broadcast in manifest broadcast receivers. Otherwise, it can only be received by dynamically-registered broadcast receivers.

Java documentation for android.content.pm.CrossProfileApps.ACTION_CAN_INTERACT_ACROSS_PROFILES_CHANGED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to