Share via


VcnManager Class

Definition

VcnManager publishes APIs for applications to configure and manage Virtual Carrier Networks.

[Android.Runtime.Register("android/net/vcn/VcnManager", ApiSince=31, DoNotGenerateAcw=true)]
public class VcnManager : Java.Lang.Object
[<Android.Runtime.Register("android/net/vcn/VcnManager", ApiSince=31, DoNotGenerateAcw=true)>]
type VcnManager = class
    inherit Object
Inheritance
VcnManager
Attributes

Remarks

VcnManager publishes APIs for applications to configure and manage Virtual Carrier Networks.

A VCN creates a virtualization layer to allow carriers to aggregate heterogeneous physical networks, unifying them as a single carrier network. This enables infrastructure flexibility on the part of carriers without impacting user connectivity, abstracting the physical network technologies as an implementation detail of their public network.

Each VCN virtualizes a carrier's network by building tunnels to a carrier's core network over carrier-managed physical links and supports a IP mobility layer to ensure seamless transitions between the underlying networks. Each VCN is configured based on a Subscription Group (see android.telephony.SubscriptionManager) and aggregates all networks that are brought up based on a profile or suggestion in the specified Subscription Group.

The VCN can be configured to expose one or more android.net.Network(s), each with different capabilities, allowing for APN virtualization.

If a tunnel fails to connect, or otherwise encounters a fatal error, the VCN will attempt to reestablish the connection. If the tunnel still has not reconnected after a system-determined timeout, the VCN Safe Mode (see below) will be entered.

The VCN Safe Mode ensures that users (and carriers) have a fallback to restore system connectivity to update profiles, diagnose issues, contact support, or perform other remediation tasks. In Safe Mode, the system will allow underlying cellular networks to be used as default. Additionally, during Safe Mode, the VCN will continue to retry the connections, and will automatically exit Safe Mode if all active tunnels connect successfully.

Java documentation for android.net.vcn.VcnManager.

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.

Constructors

VcnManager(IntPtr, JniHandleOwnership)

Fields

VcnErrorCodeConfigError
Obsolete.

Value indicating that an error with this Gateway Connection's configuration occurred.

VcnErrorCodeInternalError
Obsolete.

Value indicating that an internal failure occurred in this Gateway Connection.

VcnErrorCodeNetworkError
Obsolete.

Value indicating that a Network error occurred with this Gateway Connection.

VcnStatusCodeActive
Obsolete.

Value indicating that the VCN for the subscription group is active.

VcnStatusCodeInactive
Obsolete.

Value indicating that the VCN for the subscription group is inactive.

VcnStatusCodeNotConfigured
Obsolete.

Value indicating that the VCN for the subscription group is not configured, or that the callback is not privileged for the subscription group.

VcnStatusCodeSafeMode
Obsolete.

Value indicating that the VCN for the subscription group is in Safe Mode.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ConfiguredSubscriptionGroups

Retrieves the list of Subscription Groups for which a VCN Configuration has been set.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass
ThresholdType

Methods

ClearVcnConfig(ParcelUuid)

Clears the VCN configuration for a given subscription group.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
RegisterVcnStatusCallback(ParcelUuid, IExecutor, VcnManager+VcnStatusCallback)

Registers the given callback to receive status updates for the specified subscription.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetVcnConfig(ParcelUuid, VcnConfig)

Sets the VCN configuration for a given subscription group.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
UnregisterVcnStatusCallback(VcnManager+VcnStatusCallback)

Unregisters the given callback.

Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to