#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
#ifndef SUPERAWESOME_SWIFT_H
#define SUPERAWESOME_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"

#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif

#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif

#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
#include <cstdbool>
#include <cstring>
#include <stdlib.h>
#include <new>
#include <type_traits>
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#endif
#if defined(__cplusplus)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
# include <ptrauth.h>
#else
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
# ifndef __ptrauth_swift_value_witness_function_pointer
#  define __ptrauth_swift_value_witness_function_pointer(x)
# endif
# ifndef __ptrauth_swift_class_method_pointer
#  define __ptrauth_swift_class_method_pointer(x)
# endif
#pragma clang diagnostic pop
#endif
#pragma clang diagnostic pop
#endif

#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
#  include <uchar.h>
# elif !defined(__cplusplus)
typedef unsigned char char8_t;
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2  __attribute__((__ext_vector_type__(2)));
typedef float swift_float3  __attribute__((__ext_vector_type__(3)));
typedef float swift_float4  __attribute__((__ext_vector_type__(4)));
typedef double swift_double2  __attribute__((__ext_vector_type__(2)));
typedef double swift_double3  __attribute__((__ext_vector_type__(3)));
typedef double swift_double4  __attribute__((__ext_vector_type__(4)));
typedef int swift_int2  __attribute__((__ext_vector_type__(2)));
typedef int swift_int3  __attribute__((__ext_vector_type__(3)));
typedef int swift_int4  __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2  __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3  __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4  __attribute__((__ext_vector_type__(4)));
#endif

#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
#  define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
#  define SWIFT_CLASS_PROPERTY(...) 
# endif
#endif
#if !defined(SWIFT_RUNTIME_NAME)
# if __has_attribute(objc_runtime_name)
#  define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
# else
#  define SWIFT_RUNTIME_NAME(X) 
# endif
#endif
#if !defined(SWIFT_COMPILE_NAME)
# if __has_attribute(swift_name)
#  define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
# else
#  define SWIFT_COMPILE_NAME(X) 
# endif
#endif
#if !defined(SWIFT_METHOD_FAMILY)
# if __has_attribute(objc_method_family)
#  define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
# else
#  define SWIFT_METHOD_FAMILY(X) 
# endif
#endif
#if !defined(SWIFT_NOESCAPE)
# if __has_attribute(noescape)
#  define SWIFT_NOESCAPE __attribute__((noescape))
# else
#  define SWIFT_NOESCAPE 
# endif
#endif
#if !defined(SWIFT_RELEASES_ARGUMENT)
# if __has_attribute(ns_consumed)
#  define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
# else
#  define SWIFT_RELEASES_ARGUMENT 
# endif
#endif
#if !defined(SWIFT_WARN_UNUSED_RESULT)
# if __has_attribute(warn_unused_result)
#  define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
# else
#  define SWIFT_WARN_UNUSED_RESULT 
# endif
#endif
#if !defined(SWIFT_NORETURN)
# if __has_attribute(noreturn)
#  define SWIFT_NORETURN __attribute__((noreturn))
# else
#  define SWIFT_NORETURN 
# endif
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA 
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA 
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA 
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
#  define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
#  define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
#  define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
#  define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
#  define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
#  define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
#  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
#  define OBJC_DESIGNATED_INITIALIZER 
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if __has_attribute(enum_extensibility)
#  define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
#  define SWIFT_ENUM_ATTR(_extensibility) 
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if !defined(SWIFT_DEPRECATED_OBJC)
# if __has_feature(attribute_diagnose_if_objc)
#  define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
# else
#  define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
# endif
#endif
#if defined(__OBJC__)
#if !defined(IBSegueAction)
# define IBSegueAction 
#endif
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
#  define SWIFT_EXTERN extern "C"
# else
#  define SWIFT_EXTERN extern
# endif
#endif
#if !defined(SWIFT_CALL)
# define SWIFT_CALL __attribute__((swiftcall))
#endif
#if !defined(SWIFT_INDIRECT_RESULT)
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
#endif
#if !defined(SWIFT_CONTEXT)
# define SWIFT_CONTEXT __attribute__((swift_context))
#endif
#if !defined(SWIFT_ERROR_RESULT)
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
#endif
#if defined(__cplusplus)
# define SWIFT_NOEXCEPT noexcept
#else
# define SWIFT_NOEXCEPT 
#endif
#if !defined(SWIFT_C_INLINE_THUNK)
# if __has_attribute(always_inline)
# if __has_attribute(nodebug)
#  define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
# else
#  define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
# endif
# else
#  define SWIFT_C_INLINE_THUNK inline
# endif
#endif
#if defined(_WIN32)
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
#endif
#else
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL 
#endif
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import AVFoundation;
@import CoreFoundation;
@import CoreMedia;
@import Foundation;
@import ObjectiveC;
@import UIKit;
@import WebKit;
#endif

#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"

#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="SuperAwesome",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif

#if defined(__OBJC__)

/// This enum holds all the possible callback values that an ad sends during its lifetime
/// <ul>
///   <li>
///     adLoaded:         ad was loaded successfully and is ready
///     to be displayed
///   </li>
///   <li>
///     adEmpty           the ad server returned an empty response
///   </li>
///   <li>
///     adFailedToLoad:   ad was not loaded successfully and will not be
///     able to play
///   </li>
///   <li>
///     adAlreadyLoaded   ad was previously loaded in an interstitial, video or
///     app wall queue
///   </li>
///   <li>
///     adShown:          triggered once when the ad first displays
///   </li>
///   <li>
///     adFailedToShow:   for some reason the ad failed to show; technically
///     this should never happen nowadays
///   </li>
///   <li>
///     adClicked:        triggered every time the ad gets clicked
///   </li>
///   <li>
///     adEnded:          triggerd when a video ad ends
///   </li>
///   <li>
///     adClosed:         triggered once when the ad is closed;
///   </li>
///   <li>
///     adPaused:        triggered once when the ad is paused;
///   </li>
///   <li>
///     adPlaying:        triggered once when the ad starts playing or resumes playing after a pause;
///   </li>
///   <li>
///     webSDKReady:        triggered when the WebSDK has finished loading and is ready;
///   </li>
/// </ul>
typedef SWIFT_ENUM_NAMED(NSInteger, SAEvent, "AdEvent", open) {
  SAEventAdLoaded = 0,
  SAEventAdEmpty = 1,
  SAEventAdFailedToLoad = 2,
  SAEventAdAlreadyLoaded = 3,
  SAEventAdShown = 4,
  SAEventAdFailedToShow = 5,
  SAEventAdClicked = 6,
  SAEventAdEnded = 7,
  SAEventAdClosed = 8,
  SAEventAdPaused = 9,
  SAEventAdPlaying = 10,
  SAEventWebSDKReady = 11,
};

@protocol SAVideoPlayerControlsViewDelegate;
/// This protocol defines the public interface of a video’s chrome
/// (that is also used to control the video from the user’s perspective)
SWIFT_PROTOCOL_NAMED("VideoPlayerControlsView")
@protocol SAVideoPlayerControlsView
/// Method that sets the chrome in the playing state
- (void)setPlaying;
/// Method that sets the chrome in the paused state
- (void)setPaused;
/// Method that sets the chrome in the completed state
- (void)setCompleted;
/// Method that sets the chrome in the error state
/// @param: error - the error object
- (void)setError:(NSError * _Nonnull)error;
/// Method that updates the chrome’s time and duration
/// @param time current time
/// @param duration current duration
- (void)setTime:(NSInteger)time andDuration:(NSInteger)duration;
/// @return whether the chrome element is in a playing state or not
- (BOOL)isPlaying SWIFT_WARN_UNUSED_RESULT;
/// Method that sets the chrome in the visible state
- (void)show;
/// Method that sets the chrome in the invisible state
- (void)hide;
/// Method that sets the chrome in the minimised state
- (void)setMinimised;
/// Method that sets the chrome in the maximised state
- (void)setMaximised;
/// Method that returns whether the chrome is in maximised or minimised state
- (BOOL)isMaximised SWIFT_WARN_UNUSED_RESULT;
/// Method that sets the delegate of the ChromeControl
- (void)setDelegate:(id <SAVideoPlayerControlsViewDelegate> _Nonnull)delegate;
/// Method that sets an event listener
- (void)setListener:(id <SAVideoPlayerControlsViewDelegate> _Nonnull)controlsViewListener;
@end

@class NSCoder;
SWIFT_CLASS_NAMED("AdSocialVideoPlayerControlsView")
@interface SAAdSocialVideoPlayerControlsView : UIView <SAVideoPlayerControlsView>
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder SWIFT_UNAVAILABLE;
- (void)updateConstraints;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)makeCloseButtonVisible;
- (void)makeVolumeButtonVisible;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)setPlaying;
- (void)setPaused;
- (void)setCompleted;
- (void)setError:(NSError * _Nonnull)error;
- (void)setTime:(NSInteger)time andDuration:(NSInteger)duration;
- (BOOL)isPlaying SWIFT_WARN_UNUSED_RESULT;
- (void)show;
- (void)hide;
- (void)setMinimised;
- (void)setMaximised;
- (BOOL)isMaximised SWIFT_WARN_UNUSED_RESULT;
- (void)setDelegate:(id <SAVideoPlayerControlsViewDelegate> _Nonnull)delegate;
- (void)setListener:(id <SAVideoPlayerControlsViewDelegate> _Nonnull)controlsViewListener;
@end

@class Configuration;
@protocol SdkInfoType;
SWIFT_CLASS_NAMED("AwesomeAds")
@interface AwesomeAds : NSObject
/// Initialise the AwesomeAds SDK
/// \param configuration to set various options including environment, and logging
///
/// \param completion Callback closure to be notified once the initialisation is done
///
- (void)initSDKWithConfiguration:(Configuration * _Nonnull)configuration completion:(void (^ _Nullable)(void))completion SWIFT_METHOD_FAMILY(none);
/// Gets information about AwesomeAds SDK
/// Returns the current SDK information
- (id <SdkInfoType> _Nullable)info SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Please use the static 'AwesomeAds.info()' method instead");
/// Gets information about AwesomeAds SDK
/// Returns the current SDK information
+ (id <SdkInfoType> _Nonnull)info SWIFT_WARN_UNUSED_RESULT;
/// Initialise the AwesomeAds SDK.
/// \param logging enables or disables the logging of the SDK
///
+ (void)initSDK:(BOOL)logging SWIFT_METHOD_FAMILY(none);
/// Initialise the AwesomeAds SDK
/// \param configuration to set various options including environment, and logging
///
/// \param completion Callback closure to be notified once the initialisation is done
///
+ (void)initSDKWithConfiguration:(Configuration * _Nonnull)configuration completion:(void (^ _Nullable)(void))completion SWIFT_METHOD_FAMILY(none);
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@protocol UIViewControllerTransitionCoordinator;
@class NSString;
@class NSBundle;
SWIFT_CLASS("_TtC12SuperAwesome28AwesomeVideoFullscreenPlayer")
@interface AwesomeVideoFullscreenPlayer : UIViewController
@property (nonatomic, readonly) UIStatusBarStyle preferredStatusBarStyle;
@property (nonatomic, readonly) BOOL prefersStatusBarHidden;
@property (nonatomic, readonly) UIStatusBarAnimation preferredStatusBarUpdateAnimation;
@property (nonatomic, readonly) BOOL prefersHomeIndicatorAutoHidden;
@property (nonatomic, readonly) UIInterfaceOrientation preferredInterfaceOrientationForPresentation;
@property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
- (void)viewDidLoad;
- (void)viewWillAppear:(BOOL)animated;
- (void)viewWillDisappear:(BOOL)animated;
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id <UIViewControllerTransitionCoordinator> _Nonnull)coordinator;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
@end

/// The associated delegate of chrome control
SWIFT_PROTOCOL_NAMED("VideoPlayerControlsViewDelegate")
@protocol SAVideoPlayerControlsViewDelegate
/// This method is called by the chrome control when the progress
/// bar has started to move
- (void)didStartProgressBarSeek;
/// This method is called by the chrome control when the progress
/// bar has finished to move
/// @param value - the value the chrome has seeked to
- (void)didEndProgressBarSeek:(float)value;
/// This method is called by the chrome control when the
/// play button has been tapped
- (void)didTapPlay;
/// This method is called by the chrome control when the
/// pause button has been tapped
- (void)didTapPause;
/// This method is called by the chrome control when the
/// replayu button has been tapped
- (void)didTapReplay;
/// This method is called by the chrome control when the
/// maximise button has been tapped
- (void)didTapMaximise;
/// This method is called by the chrome control when the
/// minimise button has been tapped
- (void)didTapMinimise;
@end

@protocol SAVideoPlayerControls;
/// The associated delegate of the media control
SWIFT_PROTOCOL_NAMED("VideoPlayerControlsDelegate")
@protocol SAVideoPlayerControlsDelegate
/// This method is called by the VideoPlayerControls when the media is prepared
/// @param control - the current media control instance
- (void)didPrepareControl:(id <SAVideoPlayerControls> _Nonnull)control;
/// This method is called by the VideoPlayerControls when the time has been updated
/// @param control - the current media control instance
/// @param time - the current media time
/// @param duration - the total duration of the media
- (void)didPrepareControl:(id <SAVideoPlayerControls> _Nonnull)control withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the VideoPlayerControls when the media is finished
/// @param control - the current media control instance
/// @param time - the current media time
/// @param duration - the total duration of the media
- (void)didCompleteControl:(id <SAVideoPlayerControls> _Nonnull)control withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the VideoPlayerControls when seeking is over
/// @param control - the current media control instance
- (void)didCompleteSeekOnControl:(id <SAVideoPlayerControls> _Nonnull)control;
/// This method is called by the VideoPlayerControls when an error happened
/// @param control - the current media control instance
/// @param time - the current media time
/// @param duration - the total duration of the media
- (void)didErrorOnControl:(id <SAVideoPlayerControls> _Nonnull)control withError:(NSError * _Nonnull)error andTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the VideoPlayerControls when the player is paused
/// @param control - the current media control instance
- (void)didPauseOnControl:(id <SAVideoPlayerControls> _Nonnull)control;
/// This method is called by the VideoPlayerControls when the player is playing or resumes
/// @param control - the current media control instance
- (void)didPlayControl:(id <SAVideoPlayerControls> _Nonnull)control;
@end

@class AVPlayer;
@class AVPlayerLayer;
@protocol SAVideoPlayerDelegate;
/// This protocol defines the public interface for a video player.
/// A video player brings together a:
/// <ul>
///   <li>
///     media control
///   </li>
///   <li>
///     chrome control
///   </li>
///   <li>
///     video surfaces
///     to play local or remote videos
///   </li>
/// </ul>
SWIFT_PROTOCOL_NAMED("VideoPlayer")
@protocol SAVideoPlayer <SAVideoPlayerControlsDelegate, SAVideoPlayerControlsViewDelegate>
/// Sets the media control for the video player
/// @param control - an instance of an object that implements the MediaControl protocol
- (void)setControls:(id <SAVideoPlayerControls> _Nonnull)controller;
/// Sets the chrome control for the video player
/// @param chrome - an instance of an object that implements the ChromeControl protocol
/// @param insets - the insets for the VideoPlayerControlsView
- (void)setConstrolsView:(id <SAVideoPlayerControlsView> _Nonnull)controllerView insets:(UIEdgeInsets)insets;
/// Sets the state of the video to maximised
- (void)maximise;
/// Sets the state of the video to minimised
- (void)minimise;
/// Destroy & release the whole video player
- (void)destroy;
/// Return the current AVPlayer
- (AVPlayer * _Nullable)avPlayer SWIFT_WARN_UNUSED_RESULT;
/// Return the current AVPlayerLayer
- (AVPlayerLayer * _Nullable)avPlayerLayer SWIFT_WARN_UNUSED_RESULT;
/// *Set the delegate of the VideoPlayer protocol
/// <ul>
///   <li>
///     @param delegate - an instance of an object that implements VideoPlayerDelegate
///   </li>
/// </ul>
- (void)setDelegate:(id <SAVideoPlayerDelegate> _Nullable)delegate;
@end

SWIFT_CLASS_NAMED("AwesomeVideoPlayer")
@interface SAAwesomeVideoPlayer : UIView <SAVideoPlayer>
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)setControls:(id <SAVideoPlayerControls> _Nonnull)controller;
- (void)setConstrolsView:(id <SAVideoPlayerControlsView> _Nonnull)controllerView insets:(UIEdgeInsets)insets;
- (void)destroy;
- (void)layoutSubviews;
- (void)maximise;
- (void)minimise;
- (void)setDelegate:(id <SAVideoPlayerDelegate> _Nullable)delegate;
- (AVPlayer * _Nullable)avPlayer SWIFT_WARN_UNUSED_RESULT;
- (AVPlayerLayer * _Nullable)avPlayerLayer SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)didPrepareControl:(id <SAVideoPlayerControls> _Nonnull)control;
- (void)didPrepareControl:(id <SAVideoPlayerControls> _Nonnull)control withTime:(NSInteger)time andDuration:(NSInteger)duration;
- (void)didCompleteControl:(id <SAVideoPlayerControls> _Nonnull)control withTime:(NSInteger)time andDuration:(NSInteger)duration;
- (void)didCompleteSeekOnControl:(id <SAVideoPlayerControls> _Nonnull)control;
- (void)didErrorOnControl:(id <SAVideoPlayerControls> _Nonnull)control withError:(NSError * _Nonnull)error andTime:(NSInteger)time andDuration:(NSInteger)duration;
- (void)didPauseOnControl:(id <SAVideoPlayerControls> _Nonnull)control;
- (void)didPlayControl:(id <SAVideoPlayerControls> _Nonnull)control;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)didStartProgressBarSeek;
- (void)didEndProgressBarSeek:(float)value;
- (void)didTapPlay;
- (void)didTapPause;
- (void)didTapReplay;
- (void)didTapMaximise;
- (void)didTapMinimise;
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
@end

/// Class that abstracts away the process of loading & displaying Banner type Ad.
SWIFT_CLASS_NAMED("BannerView")
@interface SABannerAd : UIView
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder SWIFT_UNAVAILABLE;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
///   <li>
///     options: an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
///   <li>
///     options: an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
/// Method that, if an ad data is loaded, will play the content for the user
- (void)play;
/// Method that is called to close the ad
- (void)close;
/// Method that returns whether ad data for a certain placement
/// has already been loaded
/// @return              true or false
- (BOOL)hasAdAvailable SWIFT_WARN_UNUSED_RESULT;
/// Method that gets whether the banner is closed or not
- (BOOL)isClosed SWIFT_WARN_UNUSED_RESULT;
/// Callback function
- (void)setCallback:(void (^ _Nullable)(NSInteger, enum SAEvent))callback;
- (void)setTestMode:(BOOL)value;
- (void)enableTestMode;
- (void)disableTestMode;
- (void)setConfigurationProduction SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
- (void)setConfigurationStaging SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
- (void)setParentalGate:(BOOL)value;
- (void)enableParentalGate;
- (void)disableParentalGate;
- (void)setBumperPage:(BOOL)value;
- (void)enableBumperPage;
- (void)disableBumperPage;
- (void)setColorTransparent;
- (void)setColorGray;
- (void)setColor:(BOOL)value;
@end

@class UIImage;
SWIFT_CLASS_NAMED("BumperPage")
@interface SABumperPage : UIViewController
- (void)viewDidLoad;
- (void)viewDidAppear:(BOOL)animated;
- (void)viewDidDisappear:(BOOL)animated;
/// Overrides the logo on the bumper dialog
+ (void)overrideLogo:(UIImage * _Nullable)image;
/// Overrides the name on the bumper dialog
+ (void)overrideName:(NSString * _Nullable)name;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end

typedef SWIFT_ENUM(NSInteger, CloseButtonState, open) {
  CloseButtonStateVisibleWithDelay = 0,
  CloseButtonStateVisibleImmediately = 1,
  CloseButtonStateHidden = 2,
  CloseButtonStateCustom = 3,
};

SWIFT_CLASS("_TtC12SuperAwesome13Configuration")
@interface Configuration : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

SWIFT_PROTOCOL_NAMED("DataRepositoryType")
@protocol SADataRepositoryType
@property (nonatomic, copy) NSString * _Nullable userAgent;
@end

SWIFT_PROTOCOL_NAMED("DeviceTypeObjc")
@protocol SADeviceType
@property (nonatomic, readonly, copy) NSString * _Nonnull type;
@property (nonatomic, readonly, copy) NSString * _Nonnull genericType;
@property (nonatomic, readonly, copy) NSString * _Nonnull systemVersion;
@property (nonatomic, readonly, copy) NSString * _Nonnull systemVersionEscaped;
@property (nonatomic, readonly, copy) NSString * _Nonnull userAgent;
@end

enum Orientation : NSInteger;
SWIFT_CLASS_NAMED("InterstitialAd")
@interface SAInterstitialAd : NSObject
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
///   <li>
///     options: an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
///   <li>
///     options: an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
/// Method that, if an ad data is loaded, will play
/// the content for the user
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to play an ad for
///   </li>
///   <li>
///     parent:  The parent view controller
///   </li>
/// </ul>
+ (void)play:(NSInteger)placementId fromVC:(UIViewController * _Nullable)parent;
/// Method that returns whether ad data for a certain placement
/// has already been loaded
/// \param placementId the Ad placement id to check for
///
///
/// returns:
/// true or false
+ (BOOL)hasAdAvailable:(NSInteger)placementId SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use new version without placementId parameter");
/// Method that returns whether ad data has already been loaded.
///
/// returns:
/// true or false
+ (BOOL)hasAdAvailable SWIFT_WARN_UNUSED_RESULT;
/// Method that enables the close button to display with a delay.
+ (void)enableCloseButton;
/// Method that enables the close button to display immediately without a delay.
/// WARNING: this will allow users to close the ad before the viewable tracking event is fired
/// and should only be used if you explicitly want this behaviour over consistent tracking.
+ (void)enableCloseButtonNoDelay;
/// Method that enables the close button to display with a specified delay.
/// WARNING: this will change any previous close button settings.
+ (void)enableCloseButtonTimeIntervalWithCustomDelay:(NSTimeInterval)delay;
+ (void)setCallback:(void (^ _Nonnull)(NSInteger, enum SAEvent))callback;
+ (void)setConfiguration:(NSInteger)value SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
+ (void)setConfigurationProduction SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
+ (void)setConfigurationStaging SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
+ (void)setOrientation:(enum Orientation)orientation;
+ (void)setOrientationAny;
+ (void)setOrientationPortrait;
+ (void)setOrientationLandscape;
+ (void)setTestMode:(BOOL)value;
+ (void)enableTestMode;
+ (void)disableTestMode;
+ (void)setBumperPage:(BOOL)value;
+ (void)enableBumperPage;
+ (void)disableBumperPage;
+ (void)setParentalGate:(BOOL)value;
+ (void)enableParentalGate;
+ (void)disableParentalGate;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

typedef SWIFT_ENUM(NSInteger, Orientation, open) {
  OrientationAny = 0,
  OrientationPortrait = 1,
  OrientationLandscape = 2,
};

SWIFT_CLASS("_TtC12SuperAwesome17OrientationHelper")
@interface OrientationHelper : NSObject
/// Creates <code>Orientation</code> enum from <code>int</code> value.
+ (enum Orientation)from:(NSInteger)value SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

SWIFT_CLASS_NAMED("SAManagedAdView")
@interface SAManagedAdView : UIView
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
@end

@class WKWebView;
@class WKWebViewConfiguration;
@class WKNavigationAction;
@class WKWindowFeatures;
@class WKNavigation;
@interface SAManagedAdView (SWIFT_EXTENSION(SuperAwesome)) <WKNavigationDelegate, WKUIDelegate>
- (WKWebView * _Nullable)webView:(WKWebView * _Nonnull)webView createWebViewWithConfiguration:(WKWebViewConfiguration * _Nonnull)configuration forNavigationAction:(WKNavigationAction * _Nonnull)navigationAction windowFeatures:(WKWindowFeatures * _Nonnull)windowFeatures SWIFT_WARN_UNUSED_RESULT;
- (void)webView:(WKWebView * _Nonnull)webView didFinishNavigation:(WKNavigation * _Null_unspecified)navigation;
- (void)webView:(WKWebView * _Nonnull)webView decidePolicyForNavigationAction:(WKNavigationAction * _Nonnull)navigationAction decisionHandler:(void (^ _Nonnull)(WKNavigationActionPolicy))decisionHandler;
@end

SWIFT_CLASS_NAMED("SAManagedAdViewController")
@interface SAManagedAdViewController : UIViewController
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder SWIFT_UNAVAILABLE;
- (void)viewDidLoad;
- (void)viewDidDisappear:(BOOL)animated;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
@end

SWIFT_PROTOCOL("_TtP12SuperAwesome11SdkInfoType_")
@protocol SdkInfoType
/// Returns the combined version information platform + version number
/// e.g. ios_x.y.z
@property (nonatomic, readonly, copy) NSString * _Nonnull version;
/// Returns the version number only
/// e.g. x.y.z
@property (nonatomic, readonly, copy) NSString * _Nonnull versionNumber;
/// Returns the bundle name for the app
@property (nonatomic, readonly, copy) NSString * _Nonnull bundle;
/// Returns the name of the app
@property (nonatomic, readonly, copy) NSString * _Nonnull name;
/// Returns the preferred locale language and region
/// e.g. en_UK
@property (nonatomic, readonly, copy) NSString * _Nonnull lang;
@end

SWIFT_CLASS("_TtC12SuperAwesome7SdkInfo")
@interface SdkInfo : NSObject <SdkInfoType>
@property (nonatomic, copy) NSString * _Nonnull bundle;
@property (nonatomic, copy) NSString * _Nonnull name;
@property (nonatomic, copy) NSString * _Nonnull lang;
@property (nonatomic, copy) NSString * _Nonnull versionNumber;
@property (nonatomic, readonly, copy) NSString * _Nonnull version;
+ (void)overrideVersion:(NSString * _Nullable)version withPlatform:(NSString * _Nullable)platform;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

enum StartDelay : NSInteger;
SWIFT_CLASS("_TtC12SuperAwesome16StartDelayHelper")
@interface StartDelayHelper : NSObject
/// Creates <code>StartDelay</code> enum from <code>int</code> value.
+ (enum StartDelay)from:(NSInteger)value SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

SWIFT_CLASS_NAMED("VideoAd")
@interface SAVideoAd : NSObject
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
///   <li>
///     options: an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// \param placementId the Ad placement id to load data for
///
/// \param lineItemId id of the line item
///
/// \param creativeId id of the creative
///
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// \param placementId the Ad placement id to load data for
///
/// \param lineItemId id of the line item
///
/// \param creativeId id of the creative
///
/// \param openRtbPartnerId optional OpenRTB Partner ID
///
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// \param placementId the Ad placement id to load data for
///
/// \param lineItemId id of the line item
///
/// \param creativeId id of the creative
///
/// \param openRtbPartnerId optional OpenRTB Partner ID
///
/// \param options an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
+ (void)play:(NSInteger)placementId fromVC:(UIViewController * _Nonnull)viewController;
+ (BOOL)hasAdAvailable:(NSInteger)placementId SWIFT_WARN_UNUSED_RESULT;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
+ (void)setCallback:(void (^ _Nullable)(NSInteger, enum SAEvent))callback;
+ (void)setTestMode:(BOOL)testMode;
+ (void)enableTestMode;
+ (void)disableTestMode;
+ (void)setParentalGate:(BOOL)parentalGate;
+ (void)enableParentalGate;
+ (void)disableParentalGate;
+ (void)setBumperPage:(BOOL)bumperPage;
+ (void)enableBumperPage;
+ (void)disableBumperPage;
+ (void)setConfigurationProduction SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
+ (void)setConfigurationStaging SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
+ (void)setOrientation:(enum Orientation)orientation;
+ (void)setOrientationAny;
+ (void)setOrientationPortrait;
+ (void)setOrientationLandscape;
+ (void)setCloseButton:(BOOL)close;
+ (void)setCloseButtonWarning:(BOOL)withWarning;
+ (void)enableCloseButton;
+ (void)disableCloseButton;
/// Method that enables the close button to display with a specified delay.
/// WARNING: this will change any previous close button settings.
+ (void)enableCloseButtonTimeIntervalWithCustomDelay:(NSTimeInterval)delay;
/// Method that enables the close button to display immediately without a delay.
/// WARNING: this will allow users to close the ad before the viewable tracking event is fired
/// and should only be used if you explicitly want this behaviour over consistent tracking.
+ (void)enableCloseButtonNoDelay;
+ (void)setSmallClick:(BOOL)smallClick;
+ (void)enableSmallClickButton;
+ (void)disableSmallClickButton;
+ (void)setCloseAtEnd:(BOOL)close;
+ (void)enableCloseAtEnd;
+ (void)disableCloseAtEnd;
+ (void)setPlaybackMode:(enum StartDelay)delay;
+ (void)setMuteOnStart:(BOOL)mute;
+ (void)enableMuteOnStart;
+ (void)disableMuteOnStart;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

SWIFT_PROTOCOL_NAMED("VideoEventsDelegate")
@protocol SAVideoEventsDelegate
- (void)hasBeenVisible;
- (void)whenVisible;
@end

@class NSURL;
/// This protocol defines the public interface for any object that can be
/// used to control a piece of media.
SWIFT_PROTOCOL_NAMED("VideoPlayerControls")
@protocol SAVideoPlayerControls
/// Method that starts playing a piece of media
/// @param url - the url of a valid piece of media (remote or local)
- (void)play:(NSURL * _Nonnull)url;
/// Method that resumes the media play
- (void)start;
/// Method that pauses the media play
- (void)pause;
/// Method that resets the state of the MediaControl, but should
/// not release all resources so that it becomes unavailable
- (void)reset;
/// Method that frees up all resources owned by the MediaControl;
/// From here on, it cannot be re-used to play media
- (void)destroy;
/// Method to seek to a different position
- (void)seekTo:(CMTime)position;
/// Method that returns the total duration, in seconds, of the
/// media control
- (NSInteger)duration SWIFT_WARN_UNUSED_RESULT;
/// Method that returns the current position, in seconds, of the
/// media control
- (NSInteger)currentPosition SWIFT_WARN_UNUSED_RESULT;
/// Method to set the MediaControl’s delegate
/// @param delegate - a reference to an object implementing the MediaControlDelegate protocol
- (void)setDelegate:(id <SAVideoPlayerControlsDelegate> _Nonnull)delegate;
@end

@class AVPlayerItem;
SWIFT_CLASS_NAMED("VideoPlayerController")
@interface SAVideoPlayerController : AVPlayer <SAVideoPlayerControls>
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)play:(NSURL * _Nonnull)url;
- (void)start;
- (void)play;
- (void)pause;
- (void)reset;
- (void)destroy;
- (void)seekTo:(CMTime)position;
- (NSInteger)duration SWIFT_WARN_UNUSED_RESULT;
- (NSInteger)currentPosition SWIFT_WARN_UNUSED_RESULT;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)setDelegate:(id <SAVideoPlayerControlsDelegate> _Nonnull)delegate;
- (nonnull instancetype)initWithURL:(NSURL * _Nonnull)URL SWIFT_UNAVAILABLE;
- (nonnull instancetype)initWithPlayerItem:(AVPlayerItem * _Nullable)item SWIFT_UNAVAILABLE;
@end

/// The Delegate of the video player
SWIFT_PROTOCOL_NAMED("VideoPlayerDelegate")
@protocol SAVideoPlayerDelegate
/// This method is called by the video player when it is prepared and
/// has started to play a video
/// @param videoPlayer - the current videoPlayer instance
/// @param time - the current time of the video player
/// @param duration - the current total duration of the video player
- (void)didPrepareVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the video player when it has updated the time
/// @param videoPlayer - the current videoPlayer instance
/// @param time - the current time of the video player
/// @param duration - the current total duration of the video player
- (void)didUpdateTimeForVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the video player when it has finished playing
/// @param videoPlayer - the current videoPlayer instance
/// @param time - the current time of the video player
/// @param duration - the current total duration of the video player
- (void)didCompleteVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the video player when it has encountered an error
/// @param videoPlayer - the current videoPlayer instance
/// @param time - the current time of the video player
/// @param duration - the current total duration of the video player
- (void)didErrorVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer withError:(NSError * _Nonnull)error withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the video player when it has paused
/// @param videoPlayer - the current videoPlayer instance
- (void)didPauseVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer;
/// This method is called by the video player when it is playing / has resumed
/// @param videoPlayer - the current videoPlayer instance
- (void)didPlayVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer;
@end

#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#if defined(__cplusplus)
#endif
#pragma clang diagnostic pop
#endif

#elif defined(__x86_64__) && __x86_64__
// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
#ifndef SUPERAWESOME_SWIFT_H
#define SUPERAWESOME_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"

#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif

#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif

#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
#include <cstdbool>
#include <cstring>
#include <stdlib.h>
#include <new>
#include <type_traits>
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#endif
#if defined(__cplusplus)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
# include <ptrauth.h>
#else
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
# ifndef __ptrauth_swift_value_witness_function_pointer
#  define __ptrauth_swift_value_witness_function_pointer(x)
# endif
# ifndef __ptrauth_swift_class_method_pointer
#  define __ptrauth_swift_class_method_pointer(x)
# endif
#pragma clang diagnostic pop
#endif
#pragma clang diagnostic pop
#endif

#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
#  include <uchar.h>
# elif !defined(__cplusplus)
typedef unsigned char char8_t;
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2  __attribute__((__ext_vector_type__(2)));
typedef float swift_float3  __attribute__((__ext_vector_type__(3)));
typedef float swift_float4  __attribute__((__ext_vector_type__(4)));
typedef double swift_double2  __attribute__((__ext_vector_type__(2)));
typedef double swift_double3  __attribute__((__ext_vector_type__(3)));
typedef double swift_double4  __attribute__((__ext_vector_type__(4)));
typedef int swift_int2  __attribute__((__ext_vector_type__(2)));
typedef int swift_int3  __attribute__((__ext_vector_type__(3)));
typedef int swift_int4  __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2  __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3  __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4  __attribute__((__ext_vector_type__(4)));
#endif

#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
#  define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
#  define SWIFT_CLASS_PROPERTY(...) 
# endif
#endif
#if !defined(SWIFT_RUNTIME_NAME)
# if __has_attribute(objc_runtime_name)
#  define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
# else
#  define SWIFT_RUNTIME_NAME(X) 
# endif
#endif
#if !defined(SWIFT_COMPILE_NAME)
# if __has_attribute(swift_name)
#  define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
# else
#  define SWIFT_COMPILE_NAME(X) 
# endif
#endif
#if !defined(SWIFT_METHOD_FAMILY)
# if __has_attribute(objc_method_family)
#  define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
# else
#  define SWIFT_METHOD_FAMILY(X) 
# endif
#endif
#if !defined(SWIFT_NOESCAPE)
# if __has_attribute(noescape)
#  define SWIFT_NOESCAPE __attribute__((noescape))
# else
#  define SWIFT_NOESCAPE 
# endif
#endif
#if !defined(SWIFT_RELEASES_ARGUMENT)
# if __has_attribute(ns_consumed)
#  define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
# else
#  define SWIFT_RELEASES_ARGUMENT 
# endif
#endif
#if !defined(SWIFT_WARN_UNUSED_RESULT)
# if __has_attribute(warn_unused_result)
#  define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
# else
#  define SWIFT_WARN_UNUSED_RESULT 
# endif
#endif
#if !defined(SWIFT_NORETURN)
# if __has_attribute(noreturn)
#  define SWIFT_NORETURN __attribute__((noreturn))
# else
#  define SWIFT_NORETURN 
# endif
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA 
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA 
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA 
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
#  define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
#  define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
#  define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
#  define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
#  define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
#  define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
#  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
#  define OBJC_DESIGNATED_INITIALIZER 
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if __has_attribute(enum_extensibility)
#  define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
#  define SWIFT_ENUM_ATTR(_extensibility) 
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if !defined(SWIFT_DEPRECATED_OBJC)
# if __has_feature(attribute_diagnose_if_objc)
#  define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
# else
#  define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
# endif
#endif
#if defined(__OBJC__)
#if !defined(IBSegueAction)
# define IBSegueAction 
#endif
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
#  define SWIFT_EXTERN extern "C"
# else
#  define SWIFT_EXTERN extern
# endif
#endif
#if !defined(SWIFT_CALL)
# define SWIFT_CALL __attribute__((swiftcall))
#endif
#if !defined(SWIFT_INDIRECT_RESULT)
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
#endif
#if !defined(SWIFT_CONTEXT)
# define SWIFT_CONTEXT __attribute__((swift_context))
#endif
#if !defined(SWIFT_ERROR_RESULT)
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
#endif
#if defined(__cplusplus)
# define SWIFT_NOEXCEPT noexcept
#else
# define SWIFT_NOEXCEPT 
#endif
#if !defined(SWIFT_C_INLINE_THUNK)
# if __has_attribute(always_inline)
# if __has_attribute(nodebug)
#  define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
# else
#  define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
# endif
# else
#  define SWIFT_C_INLINE_THUNK inline
# endif
#endif
#if defined(_WIN32)
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
#endif
#else
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL 
#endif
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import AVFoundation;
@import CoreFoundation;
@import CoreMedia;
@import Foundation;
@import ObjectiveC;
@import UIKit;
@import WebKit;
#endif

#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"

#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="SuperAwesome",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif

#if defined(__OBJC__)

/// This enum holds all the possible callback values that an ad sends during its lifetime
/// <ul>
///   <li>
///     adLoaded:         ad was loaded successfully and is ready
///     to be displayed
///   </li>
///   <li>
///     adEmpty           the ad server returned an empty response
///   </li>
///   <li>
///     adFailedToLoad:   ad was not loaded successfully and will not be
///     able to play
///   </li>
///   <li>
///     adAlreadyLoaded   ad was previously loaded in an interstitial, video or
///     app wall queue
///   </li>
///   <li>
///     adShown:          triggered once when the ad first displays
///   </li>
///   <li>
///     adFailedToShow:   for some reason the ad failed to show; technically
///     this should never happen nowadays
///   </li>
///   <li>
///     adClicked:        triggered every time the ad gets clicked
///   </li>
///   <li>
///     adEnded:          triggerd when a video ad ends
///   </li>
///   <li>
///     adClosed:         triggered once when the ad is closed;
///   </li>
///   <li>
///     adPaused:        triggered once when the ad is paused;
///   </li>
///   <li>
///     adPlaying:        triggered once when the ad starts playing or resumes playing after a pause;
///   </li>
///   <li>
///     webSDKReady:        triggered when the WebSDK has finished loading and is ready;
///   </li>
/// </ul>
typedef SWIFT_ENUM_NAMED(NSInteger, SAEvent, "AdEvent", open) {
  SAEventAdLoaded = 0,
  SAEventAdEmpty = 1,
  SAEventAdFailedToLoad = 2,
  SAEventAdAlreadyLoaded = 3,
  SAEventAdShown = 4,
  SAEventAdFailedToShow = 5,
  SAEventAdClicked = 6,
  SAEventAdEnded = 7,
  SAEventAdClosed = 8,
  SAEventAdPaused = 9,
  SAEventAdPlaying = 10,
  SAEventWebSDKReady = 11,
};

@protocol SAVideoPlayerControlsViewDelegate;
/// This protocol defines the public interface of a video’s chrome
/// (that is also used to control the video from the user’s perspective)
SWIFT_PROTOCOL_NAMED("VideoPlayerControlsView")
@protocol SAVideoPlayerControlsView
/// Method that sets the chrome in the playing state
- (void)setPlaying;
/// Method that sets the chrome in the paused state
- (void)setPaused;
/// Method that sets the chrome in the completed state
- (void)setCompleted;
/// Method that sets the chrome in the error state
/// @param: error - the error object
- (void)setError:(NSError * _Nonnull)error;
/// Method that updates the chrome’s time and duration
/// @param time current time
/// @param duration current duration
- (void)setTime:(NSInteger)time andDuration:(NSInteger)duration;
/// @return whether the chrome element is in a playing state or not
- (BOOL)isPlaying SWIFT_WARN_UNUSED_RESULT;
/// Method that sets the chrome in the visible state
- (void)show;
/// Method that sets the chrome in the invisible state
- (void)hide;
/// Method that sets the chrome in the minimised state
- (void)setMinimised;
/// Method that sets the chrome in the maximised state
- (void)setMaximised;
/// Method that returns whether the chrome is in maximised or minimised state
- (BOOL)isMaximised SWIFT_WARN_UNUSED_RESULT;
/// Method that sets the delegate of the ChromeControl
- (void)setDelegate:(id <SAVideoPlayerControlsViewDelegate> _Nonnull)delegate;
/// Method that sets an event listener
- (void)setListener:(id <SAVideoPlayerControlsViewDelegate> _Nonnull)controlsViewListener;
@end

@class NSCoder;
SWIFT_CLASS_NAMED("AdSocialVideoPlayerControlsView")
@interface SAAdSocialVideoPlayerControlsView : UIView <SAVideoPlayerControlsView>
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder SWIFT_UNAVAILABLE;
- (void)updateConstraints;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)makeCloseButtonVisible;
- (void)makeVolumeButtonVisible;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)setPlaying;
- (void)setPaused;
- (void)setCompleted;
- (void)setError:(NSError * _Nonnull)error;
- (void)setTime:(NSInteger)time andDuration:(NSInteger)duration;
- (BOOL)isPlaying SWIFT_WARN_UNUSED_RESULT;
- (void)show;
- (void)hide;
- (void)setMinimised;
- (void)setMaximised;
- (BOOL)isMaximised SWIFT_WARN_UNUSED_RESULT;
- (void)setDelegate:(id <SAVideoPlayerControlsViewDelegate> _Nonnull)delegate;
- (void)setListener:(id <SAVideoPlayerControlsViewDelegate> _Nonnull)controlsViewListener;
@end

@class Configuration;
@protocol SdkInfoType;
SWIFT_CLASS_NAMED("AwesomeAds")
@interface AwesomeAds : NSObject
/// Initialise the AwesomeAds SDK
/// \param configuration to set various options including environment, and logging
///
/// \param completion Callback closure to be notified once the initialisation is done
///
- (void)initSDKWithConfiguration:(Configuration * _Nonnull)configuration completion:(void (^ _Nullable)(void))completion SWIFT_METHOD_FAMILY(none);
/// Gets information about AwesomeAds SDK
/// Returns the current SDK information
- (id <SdkInfoType> _Nullable)info SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Please use the static 'AwesomeAds.info()' method instead");
/// Gets information about AwesomeAds SDK
/// Returns the current SDK information
+ (id <SdkInfoType> _Nonnull)info SWIFT_WARN_UNUSED_RESULT;
/// Initialise the AwesomeAds SDK.
/// \param logging enables or disables the logging of the SDK
///
+ (void)initSDK:(BOOL)logging SWIFT_METHOD_FAMILY(none);
/// Initialise the AwesomeAds SDK
/// \param configuration to set various options including environment, and logging
///
/// \param completion Callback closure to be notified once the initialisation is done
///
+ (void)initSDKWithConfiguration:(Configuration * _Nonnull)configuration completion:(void (^ _Nullable)(void))completion SWIFT_METHOD_FAMILY(none);
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@protocol UIViewControllerTransitionCoordinator;
@class NSString;
@class NSBundle;
SWIFT_CLASS("_TtC12SuperAwesome28AwesomeVideoFullscreenPlayer")
@interface AwesomeVideoFullscreenPlayer : UIViewController
@property (nonatomic, readonly) UIStatusBarStyle preferredStatusBarStyle;
@property (nonatomic, readonly) BOOL prefersStatusBarHidden;
@property (nonatomic, readonly) UIStatusBarAnimation preferredStatusBarUpdateAnimation;
@property (nonatomic, readonly) BOOL prefersHomeIndicatorAutoHidden;
@property (nonatomic, readonly) UIInterfaceOrientation preferredInterfaceOrientationForPresentation;
@property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
- (void)viewDidLoad;
- (void)viewWillAppear:(BOOL)animated;
- (void)viewWillDisappear:(BOOL)animated;
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id <UIViewControllerTransitionCoordinator> _Nonnull)coordinator;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
@end

/// The associated delegate of chrome control
SWIFT_PROTOCOL_NAMED("VideoPlayerControlsViewDelegate")
@protocol SAVideoPlayerControlsViewDelegate
/// This method is called by the chrome control when the progress
/// bar has started to move
- (void)didStartProgressBarSeek;
/// This method is called by the chrome control when the progress
/// bar has finished to move
/// @param value - the value the chrome has seeked to
- (void)didEndProgressBarSeek:(float)value;
/// This method is called by the chrome control when the
/// play button has been tapped
- (void)didTapPlay;
/// This method is called by the chrome control when the
/// pause button has been tapped
- (void)didTapPause;
/// This method is called by the chrome control when the
/// replayu button has been tapped
- (void)didTapReplay;
/// This method is called by the chrome control when the
/// maximise button has been tapped
- (void)didTapMaximise;
/// This method is called by the chrome control when the
/// minimise button has been tapped
- (void)didTapMinimise;
@end

@protocol SAVideoPlayerControls;
/// The associated delegate of the media control
SWIFT_PROTOCOL_NAMED("VideoPlayerControlsDelegate")
@protocol SAVideoPlayerControlsDelegate
/// This method is called by the VideoPlayerControls when the media is prepared
/// @param control - the current media control instance
- (void)didPrepareControl:(id <SAVideoPlayerControls> _Nonnull)control;
/// This method is called by the VideoPlayerControls when the time has been updated
/// @param control - the current media control instance
/// @param time - the current media time
/// @param duration - the total duration of the media
- (void)didPrepareControl:(id <SAVideoPlayerControls> _Nonnull)control withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the VideoPlayerControls when the media is finished
/// @param control - the current media control instance
/// @param time - the current media time
/// @param duration - the total duration of the media
- (void)didCompleteControl:(id <SAVideoPlayerControls> _Nonnull)control withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the VideoPlayerControls when seeking is over
/// @param control - the current media control instance
- (void)didCompleteSeekOnControl:(id <SAVideoPlayerControls> _Nonnull)control;
/// This method is called by the VideoPlayerControls when an error happened
/// @param control - the current media control instance
/// @param time - the current media time
/// @param duration - the total duration of the media
- (void)didErrorOnControl:(id <SAVideoPlayerControls> _Nonnull)control withError:(NSError * _Nonnull)error andTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the VideoPlayerControls when the player is paused
/// @param control - the current media control instance
- (void)didPauseOnControl:(id <SAVideoPlayerControls> _Nonnull)control;
/// This method is called by the VideoPlayerControls when the player is playing or resumes
/// @param control - the current media control instance
- (void)didPlayControl:(id <SAVideoPlayerControls> _Nonnull)control;
@end

@class AVPlayer;
@class AVPlayerLayer;
@protocol SAVideoPlayerDelegate;
/// This protocol defines the public interface for a video player.
/// A video player brings together a:
/// <ul>
///   <li>
///     media control
///   </li>
///   <li>
///     chrome control
///   </li>
///   <li>
///     video surfaces
///     to play local or remote videos
///   </li>
/// </ul>
SWIFT_PROTOCOL_NAMED("VideoPlayer")
@protocol SAVideoPlayer <SAVideoPlayerControlsDelegate, SAVideoPlayerControlsViewDelegate>
/// Sets the media control for the video player
/// @param control - an instance of an object that implements the MediaControl protocol
- (void)setControls:(id <SAVideoPlayerControls> _Nonnull)controller;
/// Sets the chrome control for the video player
/// @param chrome - an instance of an object that implements the ChromeControl protocol
/// @param insets - the insets for the VideoPlayerControlsView
- (void)setConstrolsView:(id <SAVideoPlayerControlsView> _Nonnull)controllerView insets:(UIEdgeInsets)insets;
/// Sets the state of the video to maximised
- (void)maximise;
/// Sets the state of the video to minimised
- (void)minimise;
/// Destroy & release the whole video player
- (void)destroy;
/// Return the current AVPlayer
- (AVPlayer * _Nullable)avPlayer SWIFT_WARN_UNUSED_RESULT;
/// Return the current AVPlayerLayer
- (AVPlayerLayer * _Nullable)avPlayerLayer SWIFT_WARN_UNUSED_RESULT;
/// *Set the delegate of the VideoPlayer protocol
/// <ul>
///   <li>
///     @param delegate - an instance of an object that implements VideoPlayerDelegate
///   </li>
/// </ul>
- (void)setDelegate:(id <SAVideoPlayerDelegate> _Nullable)delegate;
@end

SWIFT_CLASS_NAMED("AwesomeVideoPlayer")
@interface SAAwesomeVideoPlayer : UIView <SAVideoPlayer>
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)setControls:(id <SAVideoPlayerControls> _Nonnull)controller;
- (void)setConstrolsView:(id <SAVideoPlayerControlsView> _Nonnull)controllerView insets:(UIEdgeInsets)insets;
- (void)destroy;
- (void)layoutSubviews;
- (void)maximise;
- (void)minimise;
- (void)setDelegate:(id <SAVideoPlayerDelegate> _Nullable)delegate;
- (AVPlayer * _Nullable)avPlayer SWIFT_WARN_UNUSED_RESULT;
- (AVPlayerLayer * _Nullable)avPlayerLayer SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)didPrepareControl:(id <SAVideoPlayerControls> _Nonnull)control;
- (void)didPrepareControl:(id <SAVideoPlayerControls> _Nonnull)control withTime:(NSInteger)time andDuration:(NSInteger)duration;
- (void)didCompleteControl:(id <SAVideoPlayerControls> _Nonnull)control withTime:(NSInteger)time andDuration:(NSInteger)duration;
- (void)didCompleteSeekOnControl:(id <SAVideoPlayerControls> _Nonnull)control;
- (void)didErrorOnControl:(id <SAVideoPlayerControls> _Nonnull)control withError:(NSError * _Nonnull)error andTime:(NSInteger)time andDuration:(NSInteger)duration;
- (void)didPauseOnControl:(id <SAVideoPlayerControls> _Nonnull)control;
- (void)didPlayControl:(id <SAVideoPlayerControls> _Nonnull)control;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)didStartProgressBarSeek;
- (void)didEndProgressBarSeek:(float)value;
- (void)didTapPlay;
- (void)didTapPause;
- (void)didTapReplay;
- (void)didTapMaximise;
- (void)didTapMinimise;
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
@end

/// Class that abstracts away the process of loading & displaying Banner type Ad.
SWIFT_CLASS_NAMED("BannerView")
@interface SABannerAd : UIView
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder SWIFT_UNAVAILABLE;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
///   <li>
///     options: an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
///   <li>
///     options: an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///   </li>
/// </ul>
- (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
/// Method that, if an ad data is loaded, will play the content for the user
- (void)play;
/// Method that is called to close the ad
- (void)close;
/// Method that returns whether ad data for a certain placement
/// has already been loaded
/// @return              true or false
- (BOOL)hasAdAvailable SWIFT_WARN_UNUSED_RESULT;
/// Method that gets whether the banner is closed or not
- (BOOL)isClosed SWIFT_WARN_UNUSED_RESULT;
/// Callback function
- (void)setCallback:(void (^ _Nullable)(NSInteger, enum SAEvent))callback;
- (void)setTestMode:(BOOL)value;
- (void)enableTestMode;
- (void)disableTestMode;
- (void)setConfigurationProduction SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
- (void)setConfigurationStaging SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
- (void)setParentalGate:(BOOL)value;
- (void)enableParentalGate;
- (void)disableParentalGate;
- (void)setBumperPage:(BOOL)value;
- (void)enableBumperPage;
- (void)disableBumperPage;
- (void)setColorTransparent;
- (void)setColorGray;
- (void)setColor:(BOOL)value;
@end

@class UIImage;
SWIFT_CLASS_NAMED("BumperPage")
@interface SABumperPage : UIViewController
- (void)viewDidLoad;
- (void)viewDidAppear:(BOOL)animated;
- (void)viewDidDisappear:(BOOL)animated;
/// Overrides the logo on the bumper dialog
+ (void)overrideLogo:(UIImage * _Nullable)image;
/// Overrides the name on the bumper dialog
+ (void)overrideName:(NSString * _Nullable)name;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end

typedef SWIFT_ENUM(NSInteger, CloseButtonState, open) {
  CloseButtonStateVisibleWithDelay = 0,
  CloseButtonStateVisibleImmediately = 1,
  CloseButtonStateHidden = 2,
  CloseButtonStateCustom = 3,
};

SWIFT_CLASS("_TtC12SuperAwesome13Configuration")
@interface Configuration : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

SWIFT_PROTOCOL_NAMED("DataRepositoryType")
@protocol SADataRepositoryType
@property (nonatomic, copy) NSString * _Nullable userAgent;
@end

SWIFT_PROTOCOL_NAMED("DeviceTypeObjc")
@protocol SADeviceType
@property (nonatomic, readonly, copy) NSString * _Nonnull type;
@property (nonatomic, readonly, copy) NSString * _Nonnull genericType;
@property (nonatomic, readonly, copy) NSString * _Nonnull systemVersion;
@property (nonatomic, readonly, copy) NSString * _Nonnull systemVersionEscaped;
@property (nonatomic, readonly, copy) NSString * _Nonnull userAgent;
@end

enum Orientation : NSInteger;
SWIFT_CLASS_NAMED("InterstitialAd")
@interface SAInterstitialAd : NSObject
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
///   <li>
///     options: an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: the Ad placement id to load data for
///   </li>
///   <li>
///     lineItemId: id of the line item
///   </li>
///   <li>
///     creativeId: id of the creative
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
///   <li>
///     options: an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
/// Method that, if an ad data is loaded, will play
/// the content for the user
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to play an ad for
///   </li>
///   <li>
///     parent:  The parent view controller
///   </li>
/// </ul>
+ (void)play:(NSInteger)placementId fromVC:(UIViewController * _Nullable)parent;
/// Method that returns whether ad data for a certain placement
/// has already been loaded
/// \param placementId the Ad placement id to check for
///
///
/// returns:
/// true or false
+ (BOOL)hasAdAvailable:(NSInteger)placementId SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use new version without placementId parameter");
/// Method that returns whether ad data has already been loaded.
///
/// returns:
/// true or false
+ (BOOL)hasAdAvailable SWIFT_WARN_UNUSED_RESULT;
/// Method that enables the close button to display with a delay.
+ (void)enableCloseButton;
/// Method that enables the close button to display immediately without a delay.
/// WARNING: this will allow users to close the ad before the viewable tracking event is fired
/// and should only be used if you explicitly want this behaviour over consistent tracking.
+ (void)enableCloseButtonNoDelay;
/// Method that enables the close button to display with a specified delay.
/// WARNING: this will change any previous close button settings.
+ (void)enableCloseButtonTimeIntervalWithCustomDelay:(NSTimeInterval)delay;
+ (void)setCallback:(void (^ _Nonnull)(NSInteger, enum SAEvent))callback;
+ (void)setConfiguration:(NSInteger)value SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
+ (void)setConfigurationProduction SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
+ (void)setConfigurationStaging SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
+ (void)setOrientation:(enum Orientation)orientation;
+ (void)setOrientationAny;
+ (void)setOrientationPortrait;
+ (void)setOrientationLandscape;
+ (void)setTestMode:(BOOL)value;
+ (void)enableTestMode;
+ (void)disableTestMode;
+ (void)setBumperPage:(BOOL)value;
+ (void)enableBumperPage;
+ (void)disableBumperPage;
+ (void)setParentalGate:(BOOL)value;
+ (void)enableParentalGate;
+ (void)disableParentalGate;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

typedef SWIFT_ENUM(NSInteger, Orientation, open) {
  OrientationAny = 0,
  OrientationPortrait = 1,
  OrientationLandscape = 2,
};

SWIFT_CLASS("_TtC12SuperAwesome17OrientationHelper")
@interface OrientationHelper : NSObject
/// Creates <code>Orientation</code> enum from <code>int</code> value.
+ (enum Orientation)from:(NSInteger)value SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

SWIFT_CLASS_NAMED("SAManagedAdView")
@interface SAManagedAdView : UIView
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
@end

@class WKWebView;
@class WKWebViewConfiguration;
@class WKNavigationAction;
@class WKWindowFeatures;
@class WKNavigation;
@interface SAManagedAdView (SWIFT_EXTENSION(SuperAwesome)) <WKNavigationDelegate, WKUIDelegate>
- (WKWebView * _Nullable)webView:(WKWebView * _Nonnull)webView createWebViewWithConfiguration:(WKWebViewConfiguration * _Nonnull)configuration forNavigationAction:(WKNavigationAction * _Nonnull)navigationAction windowFeatures:(WKWindowFeatures * _Nonnull)windowFeatures SWIFT_WARN_UNUSED_RESULT;
- (void)webView:(WKWebView * _Nonnull)webView didFinishNavigation:(WKNavigation * _Null_unspecified)navigation;
- (void)webView:(WKWebView * _Nonnull)webView decidePolicyForNavigationAction:(WKNavigationAction * _Nonnull)navigationAction decisionHandler:(void (^ _Nonnull)(WKNavigationActionPolicy))decisionHandler;
@end

SWIFT_CLASS_NAMED("SAManagedAdViewController")
@interface SAManagedAdViewController : UIViewController
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder SWIFT_UNAVAILABLE;
- (void)viewDidLoad;
- (void)viewDidDisappear:(BOOL)animated;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
@end

SWIFT_PROTOCOL("_TtP12SuperAwesome11SdkInfoType_")
@protocol SdkInfoType
/// Returns the combined version information platform + version number
/// e.g. ios_x.y.z
@property (nonatomic, readonly, copy) NSString * _Nonnull version;
/// Returns the version number only
/// e.g. x.y.z
@property (nonatomic, readonly, copy) NSString * _Nonnull versionNumber;
/// Returns the bundle name for the app
@property (nonatomic, readonly, copy) NSString * _Nonnull bundle;
/// Returns the name of the app
@property (nonatomic, readonly, copy) NSString * _Nonnull name;
/// Returns the preferred locale language and region
/// e.g. en_UK
@property (nonatomic, readonly, copy) NSString * _Nonnull lang;
@end

SWIFT_CLASS("_TtC12SuperAwesome7SdkInfo")
@interface SdkInfo : NSObject <SdkInfoType>
@property (nonatomic, copy) NSString * _Nonnull bundle;
@property (nonatomic, copy) NSString * _Nonnull name;
@property (nonatomic, copy) NSString * _Nonnull lang;
@property (nonatomic, copy) NSString * _Nonnull versionNumber;
@property (nonatomic, readonly, copy) NSString * _Nonnull version;
+ (void)overrideVersion:(NSString * _Nullable)version withPlatform:(NSString * _Nullable)platform;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

enum StartDelay : NSInteger;
SWIFT_CLASS("_TtC12SuperAwesome16StartDelayHelper")
@interface StartDelayHelper : NSObject
/// Creates <code>StartDelay</code> enum from <code>int</code> value.
+ (enum StartDelay)from:(NSInteger)value SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

SWIFT_CLASS_NAMED("VideoAd")
@interface SAVideoAd : NSObject
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// <ul>
///   <li>
///     Parameters:
///   </li>
///   <li>
///     placementId: The Ad placement id to load data for
///   </li>
///   <li>
///     openRtbPartnerId: optional OpenRTB Partner ID
///   </li>
///   <li>
///     options: an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///   </li>
/// </ul>
+ (void)load:(NSInteger)placementId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// \param placementId the Ad placement id to load data for
///
/// \param lineItemId id of the line item
///
/// \param creativeId id of the creative
///
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// \param placementId the Ad placement id to load data for
///
/// \param lineItemId id of the line item
///
/// \param creativeId id of the creative
///
/// \param openRtbPartnerId optional OpenRTB Partner ID
///
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId;
/// Method that loads an ad into the queue.
/// Ads can only be loaded once and then can be reloaded after they’ve
/// been played.
/// \param placementId the Ad placement id to load data for
///
/// \param lineItemId id of the line item
///
/// \param creativeId id of the creative
///
/// \param openRtbPartnerId optional OpenRTB Partner ID
///
/// \param options an optional dictionary of data to send with an ad’s requests and events. Supports String or Int values.
///
+ (void)load:(NSInteger)placementId lineItemId:(NSInteger)lineItemId creativeId:(NSInteger)creativeId openRtbPartnerId:(NSString * _Nullable)openRtbPartnerId options:(NSDictionary<NSString *, id> * _Nullable)options;
+ (void)play:(NSInteger)placementId fromVC:(UIViewController * _Nonnull)viewController;
+ (BOOL)hasAdAvailable:(NSInteger)placementId SWIFT_WARN_UNUSED_RESULT;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
+ (void)setCallback:(void (^ _Nullable)(NSInteger, enum SAEvent))callback;
+ (void)setTestMode:(BOOL)testMode;
+ (void)enableTestMode;
+ (void)disableTestMode;
+ (void)setParentalGate:(BOOL)parentalGate;
+ (void)enableParentalGate;
+ (void)disableParentalGate;
+ (void)setBumperPage:(BOOL)bumperPage;
+ (void)enableBumperPage;
+ (void)disableBumperPage;
+ (void)setConfigurationProduction SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
+ (void)setConfigurationStaging SWIFT_DEPRECATED_MSG("Use `AwesomeAds.initSDK()` to select configuration");
+ (void)setOrientation:(enum Orientation)orientation;
+ (void)setOrientationAny;
+ (void)setOrientationPortrait;
+ (void)setOrientationLandscape;
+ (void)setCloseButton:(BOOL)close;
+ (void)setCloseButtonWarning:(BOOL)withWarning;
+ (void)enableCloseButton;
+ (void)disableCloseButton;
/// Method that enables the close button to display with a specified delay.
/// WARNING: this will change any previous close button settings.
+ (void)enableCloseButtonTimeIntervalWithCustomDelay:(NSTimeInterval)delay;
/// Method that enables the close button to display immediately without a delay.
/// WARNING: this will allow users to close the ad before the viewable tracking event is fired
/// and should only be used if you explicitly want this behaviour over consistent tracking.
+ (void)enableCloseButtonNoDelay;
+ (void)setSmallClick:(BOOL)smallClick;
+ (void)enableSmallClickButton;
+ (void)disableSmallClickButton;
+ (void)setCloseAtEnd:(BOOL)close;
+ (void)enableCloseAtEnd;
+ (void)disableCloseAtEnd;
+ (void)setPlaybackMode:(enum StartDelay)delay;
+ (void)setMuteOnStart:(BOOL)mute;
+ (void)enableMuteOnStart;
+ (void)disableMuteOnStart;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

SWIFT_PROTOCOL_NAMED("VideoEventsDelegate")
@protocol SAVideoEventsDelegate
- (void)hasBeenVisible;
- (void)whenVisible;
@end

@class NSURL;
/// This protocol defines the public interface for any object that can be
/// used to control a piece of media.
SWIFT_PROTOCOL_NAMED("VideoPlayerControls")
@protocol SAVideoPlayerControls
/// Method that starts playing a piece of media
/// @param url - the url of a valid piece of media (remote or local)
- (void)play:(NSURL * _Nonnull)url;
/// Method that resumes the media play
- (void)start;
/// Method that pauses the media play
- (void)pause;
/// Method that resets the state of the MediaControl, but should
/// not release all resources so that it becomes unavailable
- (void)reset;
/// Method that frees up all resources owned by the MediaControl;
/// From here on, it cannot be re-used to play media
- (void)destroy;
/// Method to seek to a different position
- (void)seekTo:(CMTime)position;
/// Method that returns the total duration, in seconds, of the
/// media control
- (NSInteger)duration SWIFT_WARN_UNUSED_RESULT;
/// Method that returns the current position, in seconds, of the
/// media control
- (NSInteger)currentPosition SWIFT_WARN_UNUSED_RESULT;
/// Method to set the MediaControl’s delegate
/// @param delegate - a reference to an object implementing the MediaControlDelegate protocol
- (void)setDelegate:(id <SAVideoPlayerControlsDelegate> _Nonnull)delegate;
@end

@class AVPlayerItem;
SWIFT_CLASS_NAMED("VideoPlayerController")
@interface SAVideoPlayerController : AVPlayer <SAVideoPlayerControls>
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)play:(NSURL * _Nonnull)url;
- (void)start;
- (void)play;
- (void)pause;
- (void)reset;
- (void)destroy;
- (void)seekTo:(CMTime)position;
- (NSInteger)duration SWIFT_WARN_UNUSED_RESULT;
- (NSInteger)currentPosition SWIFT_WARN_UNUSED_RESULT;
/// /////////////////////////////////////////////////////////////////////////
/// /////////////////////////////////////////////////////////////////////////
- (void)setDelegate:(id <SAVideoPlayerControlsDelegate> _Nonnull)delegate;
- (nonnull instancetype)initWithURL:(NSURL * _Nonnull)URL SWIFT_UNAVAILABLE;
- (nonnull instancetype)initWithPlayerItem:(AVPlayerItem * _Nullable)item SWIFT_UNAVAILABLE;
@end

/// The Delegate of the video player
SWIFT_PROTOCOL_NAMED("VideoPlayerDelegate")
@protocol SAVideoPlayerDelegate
/// This method is called by the video player when it is prepared and
/// has started to play a video
/// @param videoPlayer - the current videoPlayer instance
/// @param time - the current time of the video player
/// @param duration - the current total duration of the video player
- (void)didPrepareVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the video player when it has updated the time
/// @param videoPlayer - the current videoPlayer instance
/// @param time - the current time of the video player
/// @param duration - the current total duration of the video player
- (void)didUpdateTimeForVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the video player when it has finished playing
/// @param videoPlayer - the current videoPlayer instance
/// @param time - the current time of the video player
/// @param duration - the current total duration of the video player
- (void)didCompleteVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the video player when it has encountered an error
/// @param videoPlayer - the current videoPlayer instance
/// @param time - the current time of the video player
/// @param duration - the current total duration of the video player
- (void)didErrorVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer withError:(NSError * _Nonnull)error withTime:(NSInteger)time andDuration:(NSInteger)duration;
/// This method is called by the video player when it has paused
/// @param videoPlayer - the current videoPlayer instance
- (void)didPauseVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer;
/// This method is called by the video player when it is playing / has resumed
/// @param videoPlayer - the current videoPlayer instance
- (void)didPlayVideoPlayer:(id <SAVideoPlayer> _Nonnull)videoPlayer;
@end

#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#if defined(__cplusplus)
#endif
#pragma clang diagnostic pop
#endif

#else
#error unsupported Swift architecture
#endif
