PhoneStateListener Class

Definition

Caution

This class is obsoleted in this android platform

A listener class for monitoring changes in specific telephony states on the device, including service state, signal strength, message waiting indicator (voicemail), and others.

[Android.Runtime.Register("android/telephony/PhoneStateListener", DoNotGenerateAcw=true)]
[System.Obsolete("This class is obsoleted in this android platform")]
public class PhoneStateListener : Java.Lang.Object
[<Android.Runtime.Register("android/telephony/PhoneStateListener", DoNotGenerateAcw=true)>]
[<System.Obsolete("This class is obsoleted in this android platform")>]
type PhoneStateListener = class
    inherit Object
Inheritance
PhoneStateListener
Attributes

Remarks

Java documentation for android.telephony.PhoneStateListener.

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.

Constructors

PhoneStateListener()
Obsolete.

Create a PhoneStateListener for the Phone with the default subscription.

PhoneStateListener(IExecutor)
Obsolete.

Create a PhoneStateListener for the Phone using the specified Executor

PhoneStateListener(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

ListenBarringInfo
Obsolete.

Listen for Barring Information for the current registered / camped cell.

ListenCallDisconnectCauses
Obsolete.

Listen for call disconnect causes which contains DisconnectCause and PreciseDisconnectCause.

ListenDisplayInfoChanged
Obsolete.

Listen for display info changed event.

ListenImsCallDisconnectCauses
Obsolete.

Listen for IMS call disconnect causes which contains android.telephony.ims.ImsReasonInfo

ListenPreciseDataConnectionState
Obsolete.

Listen for PreciseDataConnectionState on the data connection (cellular).

ListenRegistrationFailure
Obsolete.

Listen for Registration Failures.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
OnActiveDataSubscriptionIdChanged(Int32)
Obsolete.

Callback invoked when active data subId changes.

OnBarringInfoChanged(BarringInfo)
Obsolete.

Report updated barring information for the current camped/registered cell.

OnCallDisconnectCauseChanged(Int32, Int32)
Obsolete.

Callback invoked when call disconnect cause changes on the registered subscription.

OnCallForwardingIndicatorChanged(Boolean)
Obsolete.

Callback invoked when the call-forwarding indicator changes on the registered subscription.

OnCallStateChanged(CallState, String)
Obsolete.

Callback invoked when device call state changes.

OnCellInfoChanged(IList<CellInfo>)
Obsolete.

Callback invoked when a observed cell info has changed or new cells have been added or removed on the registered subscription.

OnCellLocationChanged(CellLocation)
Obsolete.

Callback invoked when device cell location changes on the registered subscription.

OnDataActivity(DataActivity)
Obsolete.

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

OnDataConnectionStateChanged(DataConnectionStatus)
Obsolete.

Callback invoked when connection state changes on the registered subscription.

OnDataConnectionStateChanged(DataConnectionStatus, NetworkType)
Obsolete.

same as above, but with the network type.

OnDisplayInfoChanged(TelephonyDisplayInfo)
Obsolete.

Callback invoked when the display info has changed on the registered subscription.

OnEmergencyNumberListChanged(IDictionary<Integer,IList<EmergencyNumber>>)
Obsolete.

Callback invoked when the current emergency number list has changed on the registered subscription.

OnImsCallDisconnectCauseChanged(ImsReasonInfo)
Obsolete.

Callback invoked when Ims call disconnect cause changes on the registered subscription.

OnMessageWaitingIndicatorChanged(Boolean)
Obsolete.

Callback invoked when the message-waiting indicator changes on the registered subscription.

OnPreciseDataConnectionStateChanged(PreciseDataConnectionState)
Obsolete.

Callback providing update about the default/internet data connection on the registered subscription.

OnRegistrationFailed(CellIdentity, String, Int32, Int32, Int32)
OnServiceStateChanged(ServiceState)
Obsolete.

Callback invoked when device service state changes on the registered subscription.

OnSignalStrengthChanged(Int32)
Obsolete.

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

OnSignalStrengthsChanged(SignalStrength)
Obsolete.

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

OnUserMobileDataStateChanged(Boolean)
Obsolete.

Callback invoked when the user mobile data state has changed on the registered subscription.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until either another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or a specified amount of time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to