PhoneStateListener.OnDataConnectionStateChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- state
- DataConnectionStatus
- 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
- state
- DataConnectionStatus
- 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.