Freigeben über


DevicePolicyManager.AddCrossProfileIntentFilter Method

Definition

Called by the profile owner of a managed profile so that some intents sent in the managed profile can also be resolved in the parent, or vice versa.

[Android.Runtime.Register("addCrossProfileIntentFilter", "(Landroid/content/ComponentName;Landroid/content/IntentFilter;I)V", "GetAddCrossProfileIntentFilter_Landroid_content_ComponentName_Landroid_content_IntentFilter_IHandler")]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_PROFILE_INTERACTION")]
public virtual void AddCrossProfileIntentFilter (Android.Content.ComponentName? admin, Android.Content.IntentFilter? filter, Android.App.Admin.DevicePolicyManagerFlags flags);
[<Android.Runtime.Register("addCrossProfileIntentFilter", "(Landroid/content/ComponentName;Landroid/content/IntentFilter;I)V", "GetAddCrossProfileIntentFilter_Landroid_content_ComponentName_Landroid_content_IntentFilter_IHandler")>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_PROFILE_INTERACTION")>]
abstract member AddCrossProfileIntentFilter : Android.Content.ComponentName * Android.Content.IntentFilter * Android.App.Admin.DevicePolicyManagerFlags -> unit
override this.AddCrossProfileIntentFilter : Android.Content.ComponentName * Android.Content.IntentFilter * Android.App.Admin.DevicePolicyManagerFlags -> unit

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

filter
IntentFilter

The IntentFilter the intent has to match to be also resolved in the other profile

flags
DevicePolicyManagerFlags

DevicePolicyManager#FLAG_MANAGED_CAN_ACCESS_PARENT and DevicePolicyManager#FLAG_PARENT_CAN_ACCESS_MANAGED are supported.

Attributes

Remarks

Called by the profile owner of a managed profile so that some intents sent in the managed profile can also be resolved in the parent, or vice versa. Only activity intents are supported.

Java documentation for android.app.admin.DevicePolicyManager.addCrossProfileIntentFilter(android.content.ComponentName, android.content.IntentFilter, int).

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