CPICEServers

Objective-C

@interface CPICEServers : NSObject

Swift

class CPICEServers : NSObject

This class stores ice servers list, adds a new iceServer and updates iceServer objects.

@since 1.0.0

  • Constructor method for ICEServers.

    Declaration

    Objective-C

    - (void)addICEServer:(nonnull NSString *)url;

    Swift

    func addICEServer(_ url: String)

    Parameters

    url

    URL address of the ICEServer

    Return Value

    String @since 1.0.0

  • Constructor method for ICEServers.

    @since 1.0.0

    Declaration

    Objective-C

    - (void)addICEServer:(nonnull NSString *)url
                username:(nonnull NSString *)username
                password:(nonnull NSString *)password;

    Swift

    func addICEServer(_ url: String, username: String, password: String)

    Parameters

    url

    Url address of the ICEServer

    username

    Username of the ICEServer

    password

    Password of the ICEServer

  • Returns iceServersArray.

    @since 1.0.0

    Declaration

    Objective-C

    - (nullable NSArray<CPICEServer *> *)servers;

    Swift

    func servers() -> [CPICEServer]?

    Return Value

    iceServersArray of ICEServers