Udostępnij za pośrednictwem


PhoneStateListener.OnSignalStrengthChanged(Int32) Method

Definition

Caution

deprecated

Callback invoked when network signal strength changes on the registered subscription.

[Android.Runtime.Register("onSignalStrengthChanged", "(I)V", "GetOnSignalStrengthChanged_IHandler")]
[System.Obsolete("deprecated")]
public virtual void OnSignalStrengthChanged (int asu);
[<Android.Runtime.Register("onSignalStrengthChanged", "(I)V", "GetOnSignalStrengthChanged_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member OnSignalStrengthChanged : int -> unit
override this.OnSignalStrengthChanged : int -> unit

Parameters

asu
Int32
Attributes

Remarks

Callback invoked when network signal strength 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 #onSignalStrengthsChanged(SignalStrength)

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