Share via


PhoneStateListener.OnDataActivity(DataActivity) Method

Definition

Callback invoked when data activity state changes on the registered subscription.

[Android.Runtime.Register("onDataActivity", "(I)V", "GetOnDataActivity_IHandler")]
public virtual void OnDataActivity (Android.Telephony.DataActivity direction);
[<Android.Runtime.Register("onDataActivity", "(I)V", "GetOnDataActivity_IHandler")>]
abstract member OnDataActivity : Android.Telephony.DataActivity -> unit
override this.OnDataActivity : Android.Telephony.DataActivity -> unit

Parameters

direction
DataActivity
Attributes

Remarks

Callback invoked when data activity 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.DataActivityListener instead.

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