PhoneStateListener.OnDataConnectionStateChanged Method

Definition

Overloads

OnDataConnectionStateChanged(DataConnectionStatus)

Callback invoked when connection state changes on the registered subscription.

OnDataConnectionStateChanged(DataConnectionStatus, NetworkType)

same as above, but with the network type.

OnDataConnectionStateChanged(DataConnectionStatus)

Callback invoked when connection state changes on the registered subscription.

[Android.Runtime.Register("onDataConnectionStateChanged", "(I)V", "GetOnDataConnectionStateChanged_IHandler")]
public virtual void OnDataConnectionStateChanged (Android.Telephony.DataConnectionStatus state);
[<Android.Runtime.Register("onDataConnectionStateChanged", "(I)V", "GetOnDataConnectionStateChanged_IHandler")>]
abstract member OnDataConnectionStateChanged : Android.Telephony.DataConnectionStatus -> unit
override this.OnDataConnectionStateChanged : Android.Telephony.DataConnectionStatus -> unit

Parameters

Attributes

Remarks

Callback invoked when connection state changes on the registered subscription. Note, the registration subId comes from TelephonyManager object which registers PhoneStateListener by TelephonyManager#listen(PhoneStateListener, int). If this TelephonyManager object was created with TelephonyManager#createForSubscriptionId(int), then the callback applies to the subId. Otherwise, this callback applies to SubscriptionManager#getDefaultSubscriptionId().

This member is deprecated. Use TelephonyCallback.DataConnectionStateListener instead.

Java documentation for android.telephony.PhoneStateListener.onDataConnectionStateChanged(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

OnDataConnectionStateChanged(DataConnectionStatus, NetworkType)

same as above, but with the network type.

[Android.Runtime.Register("onDataConnectionStateChanged", "(II)V", "GetOnDataConnectionStateChanged_IIHandler")]
public virtual void OnDataConnectionStateChanged (Android.Telephony.DataConnectionStatus state, Android.Telephony.NetworkType networkType);
[<Android.Runtime.Register("onDataConnectionStateChanged", "(II)V", "GetOnDataConnectionStateChanged_IIHandler")>]
abstract member OnDataConnectionStateChanged : Android.Telephony.DataConnectionStatus * Android.Telephony.NetworkType -> unit
override this.OnDataConnectionStateChanged : Android.Telephony.DataConnectionStatus * Android.Telephony.NetworkType -> unit

Parameters

networkType
NetworkType
Attributes

Remarks

same as above, but with the network type. Both called.

This member is deprecated. Use TelephonyCallback.DataConnectionStateListener instead.

Java documentation for android.telephony.PhoneStateListener.onDataConnectionStateChanged(int, 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