CallRedirectionService.RedirectCall(Uri, PhoneAccountHandle, Boolean) 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.
The implemented CallRedirectionService
calls this method to response a request
received via #onPlaceCall(Uri, PhoneAccountHandle, boolean)
to inform Telecom that
changes are required to the phone number or/and PhoneAccountHandle
for the outgoing
call.
[Android.Runtime.Register("redirectCall", "(Landroid/net/Uri;Landroid/telecom/PhoneAccountHandle;Z)V", "", ApiSince=29)]
public void RedirectCall (Android.Net.Uri gatewayUri, Android.Telecom.PhoneAccountHandle targetPhoneAccount, bool confirmFirst);
[<Android.Runtime.Register("redirectCall", "(Landroid/net/Uri;Landroid/telecom/PhoneAccountHandle;Z)V", "", ApiSince=29)>]
member this.RedirectCall : Android.Net.Uri * Android.Telecom.PhoneAccountHandle * bool -> unit
Parameters
- gatewayUri
- Uri
the gateway uri for call redirection.
- targetPhoneAccount
- PhoneAccountHandle
the PhoneAccountHandle
to use when placing the call.
- confirmFirst
- Boolean
Telecom will ask users to confirm the redirection via a yes/no dialog
if the confirmFirst is true, and if the redirection request of this
response was sent with a true flag of allowInteractiveResponse via
#onPlaceCall(Uri, PhoneAccountHandle, boolean)
- Attributes
Remarks
The implemented CallRedirectionService
calls this method to response a request received via #onPlaceCall(Uri, PhoneAccountHandle, boolean)
to inform Telecom that changes are required to the phone number or/and PhoneAccountHandle
for the outgoing call. Telecom will cancel the call if the implemented CallRedirectionService
replies Telecom a handle for an emergency number.
This can only be called from implemented #onPlaceCall(Uri, PhoneAccountHandle, boolean)
. The response corresponds to the latest request via #onPlaceCall(Uri, PhoneAccountHandle, boolean)
.
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.