次の方法で共有


AddPhoneNumberOptions Class

  • java.lang.Object
    • com.azure.android.communication.calling.AddPhoneNumberOptions

public class AddPhoneNumberOptions

Options when making an outgoing PSTN call

Constructor Summary

Constructor Description
AddPhoneNumberOptions()

Creates a new instance with a default configuration

AddPhoneNumberOptions(com.azure.android.communication.common.PhoneNumberIdentifier alternatePhoneNumber)

Creates a new instance with an PhoneNumberIdentifier

Method Summary

Modifier and Type Method and Description
void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

com.azure.android.communication.common.PhoneNumberIdentifier getAlternateCallerId()

Get the alternate phone number of a remote participant

AddPhoneNumberOptions setAlternateCallerId(com.azure.android.communication.common.PhoneNumberIdentifier alternatePhoneNumber)

Set an alternate phone number of a remote participant

Constructor Details

AddPhoneNumberOptions

public AddPhoneNumberOptions()

Creates a new instance with a default configuration

AddPhoneNumberOptions

public AddPhoneNumberOptions(com.azure.android.communication.common.PhoneNumberIdentifier alternatePhoneNumber)

Creates a new instance with an PhoneNumberIdentifier

Parameters:

alternatePhoneNumber - The alternate phone number to be used for displaying during the call.

Method Details

finalize

protected void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

getAlternateCallerId

public com.azure.android.communication.common.PhoneNumberIdentifier getAlternateCallerId()

Get the alternate phone number of a remote participant

Returns:

a PhoneNumberIdentifier object representing the alternate id.

setAlternateCallerId

public AddPhoneNumberOptions setAlternateCallerId(com.azure.android.communication.common.PhoneNumberIdentifier alternatePhoneNumber)

Set an alternate phone number of a remote participant

Parameters:

alternatePhoneNumber - Alternate phone number to use for this participant.

Returns:

an instance of StartCallOptions updated

Applies to