PhoneStateListener.OnCallStateChanged(CallState, String) 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.
Caution
deprecated
Callback invoked when device call state changes.
[Android.Runtime.Register("onCallStateChanged", "(ILjava/lang/String;)V", "GetOnCallStateChanged_ILjava_lang_String_Handler")]
[Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")]
[System.Obsolete("deprecated")]
public virtual void OnCallStateChanged (Android.Telephony.CallState state, string? phoneNumber);
[<Android.Runtime.Register("onCallStateChanged", "(ILjava/lang/String;)V", "GetOnCallStateChanged_ILjava_lang_String_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
[<System.Obsolete("deprecated")>]
abstract member OnCallStateChanged : Android.Telephony.CallState * string -> unit
override this.OnCallStateChanged : Android.Telephony.CallState * string -> unit
Parameters
- state
- CallState
call state
- phoneNumber
- String
call phone number. If application does not have
android.Manifest.permission#READ_CALL_LOG READ_CALL_LOG permission or carrier
privileges (see TelephonyManager#hasCarrierPrivileges), an empty string will be
passed as an argument.
- Attributes
Remarks
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.