TelecomManager Class
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.
Provides access to information about active calls and registration/call-management functionality.
[Android.Runtime.Register("android/telecom/TelecomManager", DoNotGenerateAcw=true)]
public class TelecomManager : Java.Lang.Object
[<Android.Runtime.Register("android/telecom/TelecomManager", DoNotGenerateAcw=true)>]
type TelecomManager = class
inherit Object
- Inheritance
- Attributes
Remarks
Provides access to information about active calls and registration/call-management functionality. Apps can use methods in this class to determine the current call state.
Apps do not instantiate this class directly; instead, they retrieve a reference to an instance through Context#getSystemService Context.getSystemService(Context.TELECOM_SERVICE)
.
Note that access to some telecom information is permission-protected. Your app cannot access the protected information or gain access to protected functionality unless it has the appropriate permissions declared in its manifest file. Where permissions apply, they are noted in the method descriptions.
Java documentation for android.telecom.TelecomManager
.
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
TelecomManager(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Fields
ActionChangeDefaultDialer |
Activity action: Shows a dialog asking the user whether or not they want to replace the
current default Dialer with the one specified in
|
ActionChangePhoneAccounts |
The |
ActionConfigurePhoneAccount |
An |
ActionDefaultCallScreeningAppChanged |
Broadcast intent action indicating that the current default call screening app has changed. |
ActionDefaultDialerChanged |
Broadcast intent action indicating that the current default dialer has changed. |
ActionIncomingCall |
Activity action: Starts the UI for handing an incoming call. |
ActionPhoneAccountRegistered |
|
ActionPhoneAccountUnregistered |
|
ActionPostCall |
Start an activity indicating that the completion of an outgoing call or an incoming call
which was not blocked by the |
ActionShowCallAccessibilitySettings |
The |
ActionShowCallSettings |
The |
ActionShowMissedCallsNotification |
Broadcast intent action for letting custom component know to show the missed call notification. |
ActionShowRespondViaSmsSettings |
The |
DtmfCharacterPause |
The dual tone multi-frequency signaling character sent to indicate the dialing system should pause for a predefined period. |
DtmfCharacterWait |
The dual-tone multi-frequency signaling character sent to indicate the dialing system should wait for user confirmation before proceeding. |
DurationLong |
Obsolete.
A integer value for |
DurationMedium |
Obsolete.
A integer value for |
DurationShort |
Obsolete.
A integer value for |
DurationVeryShort |
Obsolete.
A integer value for |
ExtraCallBackNumber |
The number which the party on the other side of the line will see (and use to return the call). |
ExtraCallDisconnectCause |
Optional extra for |
ExtraCallDisconnectMessage |
Optional extra for |
ExtraCallDuration |
A integer value provided for completed calls to indicate the duration of the call. |
ExtraCallNetworkType |
Optional extra for communicating the call network technology used by a
|
ExtraCallSubject |
Optional extra for |
ExtraChangeDefaultDialerPackageName |
Extra value used to provide the package name for |
ExtraDefaultCallScreeningAppComponentName |
Extra value used with |
ExtraDisconnectCause |
A integer value provided for completed calls to indicate the reason for the call disconnection. |
ExtraHandle |
A |
ExtraHasPicture |
A boolean extra set on incoming calls to indicate that the call has a picture specified. |
ExtraIncomingCallAddress |
The extra used by a |
ExtraIncomingCallExtras |
Optional extra for |
ExtraIncomingVideoState |
Optional extra for |
ExtraIsDefaultCallScreeningApp |
Extra value used with |
ExtraLocation |
Extra for the call composer call location, an |
ExtraNotificationCount |
The number of calls associated with the notification. |
ExtraNotificationPhoneNumber |
The number associated with the missed calls. |
ExtraOutgoingCallExtras |
Optional extra for |
ExtraOutgoingPicture |
A ParcelUuid used as a token to represent a picture that was uploaded prior to the call being placed. |
ExtraPhoneAccountHandle |
The extra used with an |
ExtraPictureUri |
A |
ExtraPriority |
Extra for the call composer call priority, either |
ExtraStartCallWithRtt |
A boolean extra, which when set on the |
ExtraStartCallWithSpeakerphone |
Optional extra for |
ExtraStartCallWithVideoState |
Optional extra for |
ExtraUseAssistedDialing |
The boolean indicated by this extra controls whether or not a call is eligible to undergo assisted dialing. |
GatewayOriginalAddress |
An optional |
GatewayProviderPackage |
An optional |
MetadataInCallServiceCarModeUi |
A boolean meta-data value indicating whether an |
MetadataInCallServiceRinging |
A boolean meta-data value indicating whether an |
MetadataInCallServiceUi |
A boolean meta-data value indicating whether an |
MetadataIncludeExternalCalls |
A boolean meta-data value indicating whether an |
MetadataIncludeSelfManagedCalls |
A boolean meta-data value indicating whether an |
PresentationUnavailable |
Obsolete.
Indicates that the address or number of a call is unavailable. |
PriorityNormal |
Obsolete.
Indicates the call composer call priority is normal. |
PriorityUrgent |
Obsolete.
Indicates the call composer call priority is urgent. |
Properties
CallCapablePhoneAccounts |
Returns a list of |
Class |
Returns the runtime class of this |
DefaultDialerPackage |
Used to determine the currently selected default dialer package. |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
HasManageOngoingCallsPermission |
Returns whether the caller has |
IsInCall |
Returns whether there is an ongoing phone call (can be in dialing, ringing, active or holding
states) originating from either a manager or self-managed |
IsInManagedCall |
Returns whether there is an ongoing call originating from a managed
|
IsTtySupported |
Returns whether TTY is supported on this device. |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
OwnSelfManagedPhoneAccounts |
Returns a list of |
PeerReference | (Inherited from Object) |
SelfManagedPhoneAccounts |
Returns a list of |
SimCallManager |
Returns the current SIM call manager. |
SystemDialerPackage |
Determines the package name of the system-provided default phone app. |
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. |
UserSelectedOutgoingPhoneAccount |
Return the |
Methods
AcceptHandover(Uri, VideoProfileState, PhoneAccountHandle) |
Called by an app to indicate that it wishes to accept the handover of an ongoing call to a
|
AcceptRingingCall() |
If there is a ringing incoming call, this method accepts the call on behalf of the user. |
AcceptRingingCall(Int32) |
If there is a ringing incoming call, this method accepts the call on behalf of the user, with the specified video state. |
AddCall(CallAttributes, IExecutor, IOutcomeReceiver, ICallControlCallback, ICallEventCallback) |
Add a call to the Android system service Telecom. |
AddNewIncomingCall(PhoneAccountHandle, Bundle) |
Registers a new incoming call. |
AddNewIncomingConference(PhoneAccountHandle, Bundle) |
Registers a new incoming conference. |
CancelMissedCallsNotification() |
Removes the missed-call notification if one is present and marks missed calls in the call log as read. |
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
CreateManageBlockedNumbersIntent() |
Creates the |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
EndCall() |
Ends the foreground call on the device. |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
GetAdnUriForPhoneAccount(PhoneAccountHandle) |
Returns a URI (with the content:// scheme) specific to the specified |
GetDefaultOutgoingPhoneAccount(String) |
Return the |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetLine1Number(PhoneAccountHandle) |
Return the line 1 phone number for given phone account. |
GetPhoneAccount(PhoneAccountHandle) |
Return the |
GetSimCallManagerForSubscription(Int32) |
Returns current SIM call manager for the Telephony Subscription ID specified. |
GetVoiceMailNumber(PhoneAccountHandle) |
Return the voicemail number for a given phone account. |
HandleMmi(String) |
Processes the specified dial string as an MMI code. |
HandleMmi(String, PhoneAccountHandle) |
Processes the specified dial string as an MMI code. |
IsIncomingCallPermitted(PhoneAccountHandle) |
Determines whether Telecom would permit an incoming call to be added via the
|
IsOutgoingCallPermitted(PhoneAccountHandle) |
Determines whether Telecom would permit an outgoing call to be placed via the
|
IsVoiceMailNumber(PhoneAccountHandle, String) |
Return whether a given phone number is the configured voicemail number for a particular phone account. |
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) |
PlaceCall(Uri, Bundle) |
Places a new outgoing call to the provided address using the system telecom service with the specified extras. |
RegisterPhoneAccount(PhoneAccount) |
Register a |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
ShowInCallScreen(Boolean) |
Brings the in-call screen to the foreground if there is an ongoing call. |
SilenceRinger() |
Silences the ringer if a ringing call exists. |
StartConference(IList<Uri>, Bundle) |
Place a new adhoc conference call with the provided participants using the system telecom service. |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
UnregisterPhoneAccount(PhoneAccountHandle) |
Remove a |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until 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) |