STSSDKPlayerViewDelegate

@protocol STSSDKPlayerViewDelegate <NSObject>

The delegate of a STSSDKPlayerView object must adopt the STSSDKPlayerViewDelegate protocol.

  • Specifies the optional UIViewController that will be used to present an in-app browser. This method is needed by Google IMA. When nil, tapping the video ad Learn More button or companion ads will result in opening Safari browser. If provided, in-app browser will be used, allowing the user to stay in the app and return easily.

    Declaration

    Objective-C

    - (UIViewController *_Nullable)webOpenerPresentingViewController;

    Swift

    func webOpenerPresentingViewController() -> Any!
  • Called when the player view needs to present a view controller. (e.g., to present a quality selection view controller.)

    Declaration

    Objective-C

    - (void)presentViewController:
        (nonnull UIViewController *)viewControllerToPresent;

    Swift

    func presentViewController(_ viewControllerToPresent: Any!)

    Parameters

    viewControllerToPresent

    viewController needs to be presented.