ImsRcsManager.GetRegistrationTransportType(IExecutor, IConsumer) Method

Definition

Gets the Transport Type associated with the current IMS registration.

[Android.Runtime.Register("getRegistrationTransportType", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetRegistrationTransportType_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")]
public virtual void GetRegistrationTransportType (Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer transportTypeCallback);
[<Android.Runtime.Register("getRegistrationTransportType", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetRegistrationTransportType_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")>]
abstract member GetRegistrationTransportType : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.GetRegistrationTransportType : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

executor
IExecutor

The Executor that will be used to call the transportTypeCallback.

transportTypeCallback
IConsumer

The transport type associated with the current IMS registration, which will be one of following: AccessNetworkConstants#TRANSPORT_TYPE_WWAN, AccessNetworkConstants#TRANSPORT_TYPE_WLAN, or AccessNetworkConstants#TRANSPORT_TYPE_INVALID.

Attributes

Remarks

Gets the Transport Type associated with the current IMS registration.

Requires Permission: android.Manifest.permission#READ_PRECISE_PHONE_STATE READ_PRECISE_PHONE_STATE or that the calling app has carrier privileges (see android.telephony.TelephonyManager#hasCarrierPrivileges).

Java documentation for android.telephony.ims.ImsRcsManager.getRegistrationTransportType(java.util.concurrent.Executor, java.util.function.Consumer<java.lang.Integer>).

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