OTVWatermark


@interface OTVWatermark : NSObject

Integration Nexguard watermark support on iOS Platform.

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

    • Return instance: An instance of OTVWatermark

    \param secret The specified secret used by QuickMark core.

    Declaration

    Objective-C

    - (nullable instancetype)initWithSecret:(NSString *_Nonnull)secret;
  • Returns an instance of OTVWatermark that will bind to UIView to watermark.

    • Return instance: An instance of OTVWatermark

    \param url The specified url used by QuickMark core.

    \param token The specified token used by QuickMark core.

    \param tenant The specified tenant used by QuickMark core.

    \param secret The specified secret used by QuickMark core.

    Declaration

    Objective-C

    - (nullable instancetype)initWithUrl:(NSString *_Nonnull)url
                                   token:(NSString *_Nonnull)token
                                  tenant:(NSString *_Nonnull)tenant
                                  secret:(NSString *_Nonnull)secret;
  • Set the specified token used by QuickMark core \param token The token for the QuickMark web view.

    Declaration

    Objective-C

    - (void)setWithToken:(NSString *_Nonnull)token;
  • Set the specified url used by QuickMark core \param url The url for the QuickMark web view.

    Declaration

    Objective-C

    - (void)setWithUrl:(NSString *_Nonnull)url;
  • Set the specified tenant used by QuickMark core \param tenant The tenant for the QuickMark web view.

    Declaration

    Objective-C

    - (void)setWithTenant:(NSString *_Nonnull)tenant;
  • Get the version of the QuickMark web view.

    • Return version: A version string

    Declaration

    Objective-C

    - (void)setWithApiKey:(NSString *_Nonnull)apiKey;
  • Get the version of the QuickMark web view.

    • Return version: A version string

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull quickmarkVersion;
  • Get the core version of the QuickMark.

    • Return quickmarkCoreVersion: A version string

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nullable quickmarkCoreVersion;
  • Bind a UIView with QuickMark web view. \param playerView UIView as parent view.t

    \param playerLayer AVPlayerLayer used by AVPlayer for playback.

    Declaration

    Objective-C

    - (void)bindWithPlayerView:(UIView *_Nonnull)playerView
                   playerLayer:(AVPlayerLayer *_Nonnull)playerLayer;
  • Unbind with player’s view, stop watermark.

    Declaration

    Objective-C

    - (void)unbind;