TelephonyCallback.IDataActivityListener.OnDataActivity(Int32) Method

Definition

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

[Android.Runtime.Register("onDataActivity", "(I)V", "GetOnDataActivity_IHandler:Android.Telephony.TelephonyCallback/IDataActivityListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)]
public void OnDataActivity (int direction);
[<Android.Runtime.Register("onDataActivity", "(I)V", "GetOnDataActivity_IHandler:Android.Telephony.TelephonyCallback/IDataActivityListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
abstract member OnDataActivity : int -> unit

Parameters

direction
Int32
Attributes

Remarks

Callback invoked when data activity state changes on the registered subscription. Note, the registration subscription ID comes from TelephonyManager object which registers TelephonyCallback by TelephonyManager#registerTelephonyCallback(Executor, TelephonyCallback). If this TelephonyManager object was created with TelephonyManager#createForSubscriptionId(int), then the callback applies to the subscription ID. Otherwise, this callback applies to SubscriptionManager#getDefaultSubscriptionId().

Java documentation for android.telephony.TelephonyCallback.DataActivityListener.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