Connection.OnAnswer 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.
Overloads
| Name | Description |
|---|---|
| OnAnswer() |
Notifies this Connection, which is in Ringing, of a request to accept. |
| OnAnswer(VideoProfileState) |
Notifies this Connection, which is in Ringing, of a request to accept. |
OnAnswer()
Notifies this Connection, which is in Ringing, of a request to accept.
[Android.Runtime.Register("onAnswer", "()V", "GetOnAnswerHandler", ApiSince=23)]
public virtual void OnAnswer();
[<Android.Runtime.Register("onAnswer", "()V", "GetOnAnswerHandler", ApiSince=23)>]
abstract member OnAnswer : unit -> unit
override this.OnAnswer : unit -> unit
- Attributes
Remarks
Notifies this Connection, which is in Ringing, of a request to accept.
For managed ConnectionServices, this will be called when the user answers a call via the default dialer's InCallService.
Although a self-managed ConnectionService provides its own incoming call UI, the Telecom framework may request that the call is answered in the following circumstances:
- The user chooses to answer an incoming call via a Bluetooth device.
- A car mode
InCallServiceis in use which has declared MetadataIncludeSelfManagedCalls in its manifest. Such anInCallServicewill be able to see calls from self-managedConnectionServices, and will be able to display an incoming call UI on their behalf.
Java documentation for android.telecom.Connection.onAnswer().
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.
Applies to
OnAnswer(VideoProfileState)
Notifies this Connection, which is in Ringing, of a request to accept.
[Android.Runtime.Register("onAnswer", "(I)V", "GetOnAnswer_IHandler", ApiSince=23)]
public virtual void OnAnswer(Android.Telecom.VideoProfileState videoState);
[<Android.Runtime.Register("onAnswer", "(I)V", "GetOnAnswer_IHandler", ApiSince=23)>]
abstract member OnAnswer : Android.Telecom.VideoProfileState -> unit
override this.OnAnswer : Android.Telecom.VideoProfileState -> unit
Parameters
- videoState
- VideoProfileState
The video state in which to answer the connection.
- Attributes
Remarks
Notifies this Connection, which is in Ringing, of a request to accept.
For managed ConnectionServices, this will be called when the user answers a call via the default dialer's InCallService.
Although a self-managed ConnectionService provides its own incoming call UI, the Telecom framework may request that the call is answered in the following circumstances:
- The user chooses to answer an incoming call via a Bluetooth device.
- A car mode
InCallServiceis in use which has declared MetadataIncludeSelfManagedCalls in its manifest. Such anInCallServicewill be able to see calls from self-managedConnectionServices, and will be able to display an incoming call UI on their behalf.
Java documentation for android.telecom.Connection.onAnswer(int).
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.