Class AddPhoneNumberOptions


  • public final class AddPhoneNumberOptions
    extends Object
    Options when making an outgoing PSTN call
    • Constructor Summary

      Constructors 
      Constructor Description
      AddPhoneNumberOptions()
      Creates a new instance with a default configuration
      AddPhoneNumberOptions​(PhoneNumberIdentifier alternatePhoneNumber)
      Creates a new instance with an PhoneNumberIdentifier
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finalize()
      Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
      PhoneNumberIdentifier getAlternateCallerId()
      Get the alternate phone number of a remote participant
      AddPhoneNumberOptions setAlternateCallerId​(PhoneNumberIdentifier alternatePhoneNumber)
      Set an alternate phone number of a remote participant
      • Methods inherited from class Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AddPhoneNumberOptions

        public AddPhoneNumberOptions()
        Creates a new instance with a default configuration
      • AddPhoneNumberOptions

        public AddPhoneNumberOptions​(PhoneNumberIdentifier alternatePhoneNumber)
        Creates a new instance with an PhoneNumberIdentifier
        Parameters:
        alternatePhoneNumber - The alternate phone number to be used for displaying during the call.
    • Method Detail

      • 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.
        Overrides:
        finalize in class Object
      • setAlternateCallerId

        public AddPhoneNumberOptions setAlternateCallerId​(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
      • getAlternateCallerId

        public PhoneNumberIdentifier getAlternateCallerId()
        Get the alternate phone number of a remote participant
        Returns:
        a PhoneNumberIdentifier object representing the alternate id.