다음을 통해 공유


PhoneAccount Class

Definition

Represents a distinct method to place or receive a phone call.

[Android.Runtime.Register("android/telecom/PhoneAccount", ApiSince=23, DoNotGenerateAcw=true)]
public sealed class PhoneAccount : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/telecom/PhoneAccount", ApiSince=23, DoNotGenerateAcw=true)>]
type PhoneAccount = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
PhoneAccount
Attributes
Implements

Remarks

Represents a distinct method to place or receive a phone call. Apps which can place calls and want those calls to be integrated into the dialer and in-call UI should build an instance of this class and register it with the system using TelecomManager.

TelecomManager uses registered PhoneAccounts to present the user with alternative options when placing a phone call. When building a PhoneAccount, the app should supply a valid PhoneAccountHandle that references the connection service implementation Telecom will use to interact with the app.

Java documentation for android.telecom.PhoneAccount.

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.

Fields

CapabilityAdhocConferenceCalling
Obsolete.

An adhoc conference call is established by providing a list of addresses to TelecomManager#startConference(List<Uri>, int videoState) where the ConnectionService is responsible for connecting all indicated participants to a conference simultaneously.

CapabilityCallComposer
Obsolete.

Flag indicating whether this PhoneAccount is capable of supporting the call composer functionality for enriched calls.

CapabilitySupportsCallStreaming
Obsolete.

Flag indicating that this voip app PhoneAccount supports the call streaming session to stream call audio to another remote device via streaming app.

CapabilitySupportsTransactionalOperations
Obsolete.

Flag indicating that this PhoneAccount supports the use TelecomManager APIs that utilize android.os.OutcomeReceivers or java.util.function.Consumers.

CapabilitySupportsVoiceCallingIndications
Obsolete.

Flag indicating that this PhoneAccount provides SIM-based voice calls, potentially as an over-the-top solution such as wi-fi calling.

CapabilityVoiceCallingAvailable
Obsolete.

Flag indicating that this PhoneAccount is <em>currently</em> able to place SIM-based voice calls, similar to #CAPABILITY_VIDEO_CALLING.

ExtraAddSelfManagedCallsToIncallservice

Boolean PhoneAccount extras key (see PhoneAccount#getExtras()) which indicates whether a Self-managed PhoneAccount want to expose its calls to all InCallService which declares the metadata TelecomManager#METADATA_INCLUDE_SELF_MANAGED_CALLS.

ExtraAlwaysUseVoipAudioMode

Boolean PhoneAccount extras key (see PhoneAccount#getExtras()) which indicates that all calls from this PhoneAccount should be treated as VoIP calls rather than cellular calls by the Telecom audio handling logic.

ExtraCallSubjectCharacterEncoding

PhoneAccount extras key (see PhoneAccount#getExtras()) which determines the character encoding to be used when determining the length of messages.

ExtraCallSubjectMaxLength

PhoneAccount extras key (see PhoneAccount#getExtras()) which determines the maximum permitted length of a call subject specified via the TelecomManager#EXTRA_CALL_SUBJECT extra on an android.content.Intent#ACTION_CALL intent.

ExtraLogSelfManagedCalls

Boolean PhoneAccount extras key (see PhoneAccount#getExtras()) which indicates whether a Self-Managed PhoneAccount should log its calls to the call log.

ExtraSupportsHandoverFrom

Boolean PhoneAccount extras key (see PhoneAccount#getExtras()) which indicates whether this PhoneAccount is capable of supporting a request to handover a connection from this PhoneAccount to another PhoneAccount.

ExtraSupportsHandoverTo

Boolean PhoneAccount extras key (see PhoneAccount#getExtras()) which indicates whether this PhoneAccount is capable of supporting a request to handover a connection (see android.telecom.Call#handoverTo()) to this PhoneAccount from a PhoneAccount specifying #EXTRA_SUPPORTS_HANDOVER_FROM.

NoHighlightColor

Indicating no hightlight color is set.

NoResourceId

Indicating no resource ID is set.

SchemeSip

URI scheme for SIP URIs.

SchemeTel

URI scheme for telephone number URIs.

SchemeVoicemail

URI scheme for voicemail URIs.

Properties

AccountHandle

The unique identifier of this PhoneAccount.

Address

The address (e.

Capabilities

The capabilities of this PhoneAccount.

Class

Returns the runtime class of this Object.

(Inherited from Object)
Creator
Extras

The extras associated with this PhoneAccount.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
HighlightColor

A highlight color to use in displaying information about this PhoneAccount.

Icon

The icon to represent this PhoneAccount.

IsEnabled

Indicates whether the user has enabled this PhoneAccount or not.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Label
LabelFormatted

A short label describing a PhoneAccount.

PeerReference (Inherited from Object)
ShortDescription
ShortDescriptionFormatted

A short paragraph describing this PhoneAccount.

SubscriptionAddress

The raw callback number used for this PhoneAccount, as distinct from #getAddress().

SupportedUriSchemes

The URI schemes supported by this PhoneAccount.

ThresholdClass

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

(Inherited from Object)
ThresholdType

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

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()
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)
HasCapabilities(ConnectionCapability)

Determines if this PhoneAccount has a capabilities specified by the passed in bit mask.

InvokeBuilder(PhoneAccountHandle, ICharSequence)
InvokeBuilder(PhoneAccountHandle, String)
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)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SupportsUriScheme(String)

Determines if the PhoneAccount supports calls to/from addresses with a specified URI scheme.

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

Returns a builder initialized with the current PhoneAccount instance.

ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
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, 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)
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)
WriteToParcel(Parcel, ParcelableWriteFlags)

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