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
OTVWatermarkthat will bind toUIViewto watermark.Return instance: An instance of
OTVWatermark
Declaration
Swift
@objc public init?(secret: String)Parameters
secretThe specified secret used by QuickMark core.
-
Returns an instance of
OTVWatermarkthat will bind toUIViewto watermark.Return instance: An instance of
OTVWatermark
Declaration
Swift
@objc public init?(url: String, token: String, tenant: String, secret: String)Parameters
urlThe specified url used by QuickMark core.
tokenThe specified token used by QuickMark core.
tenantThe specified tenant used by QuickMark core.
secretThe specified secret used by QuickMark core.
-
Set the specified token used by QuickMark core
Declaration
Swift
@objc public func set(token: String)Parameters
tokenThe token for the QuickMark web view.
-
Set the specified url used by QuickMark core
Declaration
Swift
@objc public func set(url: String)Parameters
urlThe url for the QuickMark web view.
-
Set the specified tenant used by QuickMark core
Declaration
Swift
@objc public func set(tenant: String)Parameters
tenantThe tenant for the QuickMark web view.
-
Get the version of the QuickMark web view.
- Return version: A version string
Declaration
Swift
@objc public func set(apiKey: String) -
Get the version of the QuickMark web view.
- Return version: A version string
Declaration
Swift
@objc public var quickmarkVersion: String { get } -
Get the core version of the QuickMark.
- Return quickmarkCoreVersion: A version string
Declaration
Swift
@objc public var quickmarkCoreVersion: String? { get } -
Bind a
UIViewwith QuickMark web view.Declaration
Swift
@objc public func bind(playerView: UIView, playerLayer: AVPlayerLayer)Parameters
playerViewUIViewas parent view.tplayerLayerAVPlayerLayerused byAVPlayerfor playback. -
Unbind with player’s view, stop watermark.
Declaration
Swift
@objc public func unbind()
OTVWatermark Class Reference