ConnectionService.OnCreateOutgoingConnection 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.
Create a Connection
given an outgoing request.
[Android.Runtime.Register("onCreateOutgoingConnection", "(Landroid/telecom/PhoneAccountHandle;Landroid/telecom/ConnectionRequest;)Landroid/telecom/Connection;", "GetOnCreateOutgoingConnection_Landroid_telecom_PhoneAccountHandle_Landroid_telecom_ConnectionRequest_Handler", ApiSince=23)]
public virtual Android.Telecom.Connection? OnCreateOutgoingConnection (Android.Telecom.PhoneAccountHandle? connectionManagerPhoneAccount, Android.Telecom.ConnectionRequest? request);
[<Android.Runtime.Register("onCreateOutgoingConnection", "(Landroid/telecom/PhoneAccountHandle;Landroid/telecom/ConnectionRequest;)Landroid/telecom/Connection;", "GetOnCreateOutgoingConnection_Landroid_telecom_PhoneAccountHandle_Landroid_telecom_ConnectionRequest_Handler", ApiSince=23)>]
abstract member OnCreateOutgoingConnection : Android.Telecom.PhoneAccountHandle * Android.Telecom.ConnectionRequest -> Android.Telecom.Connection
override this.OnCreateOutgoingConnection : Android.Telecom.PhoneAccountHandle * Android.Telecom.ConnectionRequest -> Android.Telecom.Connection
Parameters
- connectionManagerPhoneAccount
- PhoneAccountHandle
The connection manager account to use for managing
this call.
<p>
If this parameter is not null
, it means that this ConnectionService
has registered one or more PhoneAccount
s having
PhoneAccount#CAPABILITY_CONNECTION_MANAGER
. This parameter will contain
one of these PhoneAccount
s, while the request
will contain another
(usually but not always distinct) PhoneAccount
to be used for actually
making the connection.
<p>
If this parameter is null
, it means that this ConnectionService
is
being asked to make a direct connection. The
ConnectionRequest#getAccountHandle()
of parameter request
will be
a PhoneAccount
registered by this ConnectionService
to use for
making the connection.
- request
- ConnectionRequest
Details about the outgoing call.
Returns
The Connection
object to satisfy this call, or the result of an invocation
of Connection#createFailedConnection(DisconnectCause)
to not handle the call.
- Attributes
Remarks
Create a Connection
given an outgoing request. This is used to initiate new outgoing calls.
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.