TemporaryChannel

@objc(VTETemporaryChannel)
public class TemporaryChannel : NSObject

Class representing Temporary Channel

  • Identity of participant

    Declaration

    Swift

    @objc
    public let participant: String
  • Encrypts data

    Declaration

    Swift

    @objc
    open func encrypt(data: Data) throws -> Data

    Parameters

    data

    Data to encrypt

  • Decrypts data

    Declaration

    Swift

    @objc
    open func decrypt(data: Data) throws -> Data

    Parameters

    data

    encrypted Data

  • Encrypts string

    Declaration

    Swift

    @objc
    open func encrypt(text: String) throws -> String

    Parameters

    text

    String to encrypt

  • Decrypts string

    Declaration

    Swift

    @objc
    open func decrypt(text: String) throws -> String

    Parameters

    text

    encrypted String