Udostępnij za pośrednictwem


DevicePolicyManager.GetOverrideApns(ComponentName) Method

Definition

Called by device owner or managed profile owner to get all override APNs inserted by device owner or managed profile owner previously using #addOverrideApn.

[Android.Runtime.Register("getOverrideApns", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetOverrideApns_Landroid_content_ComponentName_Handler", ApiSince=28)]
public virtual System.Collections.Generic.IList<Android.Telephony.Data.ApnSetting>? GetOverrideApns (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getOverrideApns", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetOverrideApns_Landroid_content_ComponentName_Handler", ApiSince=28)>]
abstract member GetOverrideApns : Android.Content.ComponentName -> System.Collections.Generic.IList<Android.Telephony.Data.ApnSetting>
override this.GetOverrideApns : Android.Content.ComponentName -> System.Collections.Generic.IList<Android.Telephony.Data.ApnSetting>

Parameters

admin
ComponentName

which DeviceAdminReceiver this request is associated with

Returns

A list of override APNs inserted by device owner.

Attributes

Remarks

Called by device owner or managed profile owner to get all override APNs inserted by device owner or managed profile owner previously using #addOverrideApn.

Java documentation for android.app.admin.DevicePolicyManager.getOverrideApns(android.content.ComponentName).

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