OTVWatermark

public class OTVWatermark : NSObject

Integration Nexguard watermark support on iOS Platform.

  • Delegate for receiving watermark message or error information.

    Declaration

    Swift

    public weak var delegate: OTVWatermarkDelegate? { get set }
  • Returns an instance of OTVWatermark that will bind to UIView to watermark.

    Declaration

    Swift

    @objc
    public init?(secret: String)

    Parameters

    secret

    The specified secret used by QuickMark core.

    Return Value

    An instance of OTVWatermark

  • Returns an instance of OTVWatermark that will bind to UIView to watermark.

    Declaration

    Swift

    @objc
    public init?(url: String, token: String, tenant: String, secret: String)

    Parameters

    url

    The specified url used by QuickMark core.

    token

    The specified token used by QuickMark core.

    tenant

    The specified tenant used by QuickMark core.

    secret

    The specified secret used by QuickMark core.

    Return Value

    An instance of OTVWatermark

  • Set the specified token used by QuickMark core

    Declaration

    Swift

    @objc
    public func set(token: String)

    Parameters

    token

    The token for the QuickMark web view.

  • Set the specified url used by QuickMark core

    Declaration

    Swift

    @objc
    public func set(url: String)

    Parameters

    url

    The url for the QuickMark web view.

  • Set the specified tenant used by QuickMark core

    Declaration

    Swift

    @objc
    public func set(tenant: String)

    Parameters

    tenant

    The tenant for the QuickMark web view.

  • Get the version of the QuickMark web view.

    Declaration

    Swift

    @objc
    public func set(apiKey: String)

    Return Value

    A version string

  • Get the version of the QuickMark web view.

    Declaration

    Swift

    @objc
    public var quickmarkVersion: String { get }

    Return Value

    A version string

  • Get the core version of the QuickMark.

    Declaration

    Swift

    @objc
    public var quickmarkCoreVersion: String? { get }

    Return Value

    A version string containing quickmarkCoreVersion

  • Bind a UIView with QuickMark web view.

    Declaration

    Swift

    @objc
    public func bind(playerView: UIView, playerLayer: AVPlayerLayer)

    Parameters

    playerView

    UIView as parent view.t

    playerLayer

    AVPlayerLayer used by AVPlayer for playback.

  • Unbind with player’s view, stop watermark.

    Declaration

    Swift

    @objc
    public func unbind()