7 @class MPMoviePlayerController;
8 @class UIViewController;
10 @protocol FWAdManager;
13 @protocol FWAdInstance;
14 @protocol FWCreativeRendition;
15 @protocol FWCreativeRenditionAsset;
16 @protocol FWRendererController;
19 #pragma clang arc_cf_code_audited begin 26 FW_EXTERN id<FWAdManager> newAdManager(
void);
36 FW_EXTERN
void FWSetLogLevel(FWLogLevel value);
44 FW_EXTERN
void FWSetUncaughtExceptionHandler(NSUncaughtExceptionHandler *handler);
50 FW_EXTERN
void FWClearCookie(
void);
56 FW_EXTERN
void FWSetCookieOptOutState(BOOL value);
62 FW_EXTERN BOOL FWGetCookieOptOutState(
void);
69 @protocol FWAdManager <NSObject>
75 - (void)setCurrentViewController:(UIViewController *)value;
81 - (void)setServerUrl:(NSString *)value;
87 - (void)setNetworkId:(NSUInteger)value;
93 - (void)setLocation:(CLLocation *)value;
99 - (NSUInteger)version;
106 - (id<FWContext>)newContext;
131 - (id<FWContext>)newContextWithContext:(
id<FWContext>)context;
136 - (void)disableFWCrashReporter;
142 @protocol FWContext <NSObject>
148 - (void)setVideoDisplayBase:(UIView *)value;
154 - (void)setMoviePlayerFullscreen:(BOOL)value DEPRECATED_ATTRIBUTE;
156 - (void)setMoviePlayerController:(MPMoviePlayerController *)value DEPRECATED_ATTRIBUTE;
158 - (BOOL)setCapability:(NSString *)capability :(FWCapabilityStatus)status DEPRECATED_ATTRIBUTE;
169 - (BOOL)setCapability:(NSString *)capability status:(FWCapabilityStatus)status;
171 - (void)addKeyValue:(NSString *)key :(NSString *)value DEPRECATED_ATTRIBUTE;
178 - (void)addValue:(NSString *)value forKey:(NSString *)key;
180 - (void)setProfile:(NSString *)playerProfile :(NSString *)defaultTemporalSlotProfile :(NSString *)defaultVideoPlayerSlotProfile :(NSString *)defaultSiteSectionSlotProfile DEPRECATED_ATTRIBUTE;
189 - (void)setPlayerProfile:(NSString *)playerProfile defaultTemporalSlotProfile:(NSString *)defaultTemporalSlotProfile defaultVideoPlayerSlotProfile:(NSString *)defaultVideoPlayerSlotProfile defaultSiteSectionSlotProfile:(NSString *)defaultSiteSectionSlotProfile;
191 - (void)setVisitor:(NSString *)customId :(NSString *)ipV4Address :(NSUInteger)bandwidth :(NSString *)bandwidthSource DEPRECATED_ATTRIBUTE;
200 - (void)setVisitorId:(NSString *)customId ipV4Address:(NSString *)ipV4Address bandwidth:(NSUInteger)bandwidth bandwidthSource:(NSString *)bandwidthSource;
202 - (void)setVisitorHttpHeader:(NSString *)name :(NSString *)value DEPRECATED_ATTRIBUTE;
209 - (void)setVisitorHTTPHeader:(NSString *)name withValue:(NSString *)value;
211 - (void)setVideoAsset:(NSString *)videoAssetId :(NSTimeInterval)duration :(NSString *)location :(FWVideoAssetAutoPlayType)autoPlayType :(NSUInteger)videoPlayRandom :(NSUInteger)networkId :(FWIdType)idType :(NSUInteger)fallbackId :(FWVideoAssetDurationType)durationType DEPRECATED_ATTRIBUTE;
233 - (void)setVideoAssetId:(NSString *)videoAssetId idType:(FWIdType)idType duration:(NSTimeInterval)duration durationType:(FWVideoAssetDurationType)durationType location:(NSString *)location autoPlayType:(FWVideoAssetAutoPlayType)autoPlayType videoPlayRandom:(NSUInteger)videoPlayRandom networkId:(NSUInteger)networkId fallbackId:(NSUInteger)fallbackId;
242 - (void)setVideoAssetCurrentTimePosition:(NSTimeInterval)timePosition;
244 - (void)setSiteSection:(NSString *)siteSectionId :(NSUInteger)pageViewRandom :(NSUInteger)networkId :(FWIdType)idType :(NSUInteger)fallbackId DEPRECATED_ATTRIBUTE;
257 - (void)setSiteSectionId:(NSString *)siteSectionId idType:(FWIdType)idType pageViewRandom:(NSUInteger)pageViewRandom networkId:(NSUInteger)networkId fallbackId:(NSUInteger)fallbackId;
259 - (void)addCandidateAd:(NSUInteger)candidateAdId DEPRECATED_ATTRIBUTE;
265 - (void)addCandidateAdId:(NSUInteger)candidateAdId;
267 - (void)addTemporalSlot:(NSString *)customId :(NSString *)adUnit :(NSTimeInterval)timePosition :(NSString *)slotProfile :(NSUInteger)cuePointSequence :(NSTimeInterval)maxDuration :(NSString *)acceptPrimaryContentType :(NSString *)acceptContentType :(NSTimeInterval)minDuration DEPRECATED_ATTRIBUTE;
281 - (void)addTemporalSlot:(NSString *)customId adUnit:(NSString *)adUnit timePosition:(NSTimeInterval)timePosition slotProfile:(NSString *)slotProfile cuePointSequence:(NSUInteger)cuePointSequence minDuration:(NSTimeInterval)minDuration maxDuration:(NSTimeInterval)maxDuration acceptPrimaryContentType:(NSString *)acceptPrimaryContentType acceptContentType:(NSString *)acceptContentType;
283 - (void)addVideoPlayerNonTemporalSlot:(NSString *)customId :(NSString *)adUnit :(NSUInteger)width :(NSUInteger)height :(NSString *)slotProfile :(BOOL)acceptCompanion :(FWInitialAdOption)initialAdOption :(NSString *)acceptPrimaryContentType :(NSString *)acceptContentType :(NSArray *)compatibleDimensions DEPRECATED_ATTRIBUTE;
311 - (void)addVideoPlayerNonTemporalSlot:(NSString *)customId adUnit:(NSString *)adUnit width:(NSUInteger)width height:(NSUInteger)height slotProfile:(NSString *)slotProfile acceptCompanion:(BOOL)acceptCompanion initialAdOption:(FWInitialAdOption)initialAdOption acceptPrimaryContentType:(NSString *)acceptPrimaryContentType acceptContentType:(NSString *)acceptContentType compatibleDimensions:(NSArray *)compatibleDimensions;
313 - (void)addSiteSectionNonTemporalSlot:(NSString *)customId :(NSString *)adUnit :(NSUInteger)width :(NSUInteger)height :(NSString *)slotProfile :(BOOL)acceptCompanion :(FWInitialAdOption)initialAdOption :(NSString *)acceptPrimaryContentType :(NSString *)acceptContentType :(NSArray *)compatibleDimensions DEPRECATED_ATTRIBUTE;
341 - (void)addSiteSectionNonTemporalSlot:(NSString *)customId adUnit:(NSString *)adUnit width:(NSUInteger)width height:(NSUInteger)height slotProfile:(NSString *)slotProfile acceptCompanion:(BOOL)acceptCompanion initialAdOption:(FWInitialAdOption)initialAdOption acceptPrimaryContentType:(NSString *)acceptPrimaryContentType acceptContentType:(NSString *)acceptContentType compatibleDimensions:(NSArray *)compatibleDimensions;
351 - (void)setVideoState:(FWVideoState)videoState;
357 - (void)setVideoPlayheadTime:(NSTimeInterval *)playheadTime;
363 - (NSArray * )temporalSlots;
369 - (NSArray * )videoPlayerNonTemporalSlots;
375 - (NSArray * )siteSectionNonTemporalSlots;
388 - (NSArray * )getSlotsByTimePositionClass:(FWTimePositionClass)timePositionClass;
395 - (id<FWSlot>)getSlotByCustomId:(NSString *)customId;
397 - (void)submitRequest:(NSTimeInterval)timeoutInterval DEPRECATED_ATTRIBUTE;
403 - (void)submitRequestWithTimeout:(NSTimeInterval)timeoutInterval;
415 - (void)addRendererClass:(NSString *)className forContentType:(NSString *)contentType creativeAPI:(NSString *)creativeAPI slotType:(NSString *)slotType baseUnit:(NSString *)baseAdUnit adUnit:(NSString *)soldAsAdUnit withParameters:(NSDictionary *)parameters;
426 - (void)setParameter:(NSString *)name withValue:(
id)value forLevel:(FWParameterLevel)level;
432 - (id)getParameter:(NSString *)name;
444 - (void)setVideoDisplayCompatibleSizes:(NSArray *)compatibleDimensions;
456 - (void)setRequestMode:(FWRequestMode)mode;
462 - (void)setRequestDuration:(NSTimeInterval)requestDuration;
467 - (void)resetExclusivity;
469 - (void)startSubsession:(NSUInteger)subsessionToken DEPRECATED_ATTRIBUTE;
479 - (void)startSubsessionWithToken:(NSUInteger)subsessionToken;
486 - (NSString *)getVideoLocation;
493 - (id<FWAdManager>)getAdManager;
498 - (NSNotificationCenter *)notificationCenter;
506 - (void)notifyUserAction:(FWUserAction)userAction;
518 - (void)loadExtension:(NSString *)extensionName;
524 - (void)requestTimelinePause;
530 - (void)requestTimelineResume;
532 - (NSString *)transactionId;
540 @protocol FWSlot <NSObject>
546 - (NSString *)customId;
561 - (NSTimeInterval)timePosition;
573 - (FWTimePositionClass)timePositionClass;
579 - (NSTimeInterval)embeddedAdsDuration;
585 - (NSTimeInterval)endTimePosition;
591 - (NSArray * )adInstances;
609 - (void)processEvent:(NSString *)eventName;
659 - (void)setVisible:(BOOL)value;
666 - (UIView *)slotBase;
673 - (void)setParameter:(NSString *)name withValue:(
id)value;
680 - (id)getParameter:(NSString *)name;
686 - (NSTimeInterval)totalDuration;
692 - (NSTimeInterval)playheadTime;
698 - (id<FWAdInstance>)currentAdInstance;
705 @protocol FWAdInstance <NSObject>
713 - (NSString *)adUniqueId;
720 - (NSUInteger)creativeId;
726 - (id<FWCreativeRendition>)primaryCreativeRendition;
728 - (NSArray *)getEventCallbackUrls:(NSString *)eventName :(NSString *)eventType DEPRECATED_ATTRIBUTE;
759 - (NSArray *)getEventCallbackUrlsByEventName:(NSString *)eventName eventType:(NSString *)eventType;
761 - (void)setEventCallbackUrls:(NSString *)eventName :(NSString *)eventType :(NSArray *)urls DEPRECATED_ATTRIBUTE;
790 - (void)setEventCallbackUrls:(NSArray *)urls forEventName:(NSString *)eventName eventType:(NSString *)eventType;
796 - (id<FWCreativeRendition>)addCreativeRendition;
802 - (id<FWRendererController>)rendererController;
812 - (id)getParameter:(NSString *)name;
818 - (NSArray *)companionSlots;
825 - (NSArray *)companionAdInstances;
832 - (BOOL)isRequiredToShow;
837 - (NSArray* )creativeRenditions;
843 - (void)setPrimaryCreativeRendition:(
id<FWCreativeRendition>)primaryCreativeRendition;
856 - (NSTimeInterval)duration;
862 - (NSTimeInterval)playheadTime;
869 @protocol FWCreativeRendition <NSObject>
875 - (NSString *)contentType;
880 - (void)setContentType:(NSString *)value;
886 - (NSString *)wrapperType;
891 - (void)setWrapperType:(NSString *)value;
897 - (NSString *)wrapperUrl;
902 - (void)setWrapperUrl:(NSString *)value;
908 - (NSString *)creativeAPI;
913 - (void)setCreativeAPI:(NSString *)value;
919 - (NSString *)baseUnit;
930 - (void)setPreference:(
int)value;
941 - (void)setWidth:(NSUInteger)value;
947 - (NSUInteger)height;
952 - (void)setHeight:(NSUInteger)value;
958 - (NSTimeInterval)duration;
964 - (void)setDuration:(NSTimeInterval)value;
966 - (void)setParameter:(NSString *)name :(NSString *)value DEPRECATED_ATTRIBUTE;
971 - (void)setParameter:(NSString *)name withValue:(NSString *)value;
977 - (id<FWCreativeRenditionAsset>)primaryCreativeRenditionAsset;
983 - (NSArray * )otherCreativeRenditionAssets;
988 - (id<FWCreativeRenditionAsset>)addCreativeRenditionAsset;
995 @protocol FWCreativeRenditionAsset <NSObject>
1005 - (void)setName:(NSString *)value;
1016 - (void)setUrl:(NSString *)value;
1022 - (NSString *)content;
1027 - (void)setContent:(NSString *)value;
1033 - (NSString *)mimeType;
1038 - (void)setMimeType:(NSString *)value;
1044 - (NSString *)contentType;
1049 - (void)setContentType:(NSString *)value;
1061 - (void)setBytes:(NSInteger)value;
1067 - (void)postNotificationName:(NSString *)notificationName userInfo:(NSDictionary *)userInfo;
1076 @protocol FWRendererController <NSObject>
1083 - (CLLocation *)location;
1090 - (UIViewController *)currentViewController;
1092 - (MPMoviePlayerController *)moviePlayerController DEPRECATED_ATTRIBUTE;
1094 - (BOOL)moviePlayerFullscreen DEPRECATED_ATTRIBUTE;
1100 - (NSArray * )renderableCreativeRenditions;
1133 - (void)processEvent:(NSString *)eventName info:(NSDictionary *)details;
1135 - (void)setCapability:(NSString *)eventCapability :(FWCapabilityStatus)status DEPRECATED_ATTRIBUTE;
1145 - (void)setCapability:(NSString *)eventCapability status:(FWCapabilityStatus)status;
1151 - (NSUInteger)version;
1157 - (id)getParameter:(NSString *)name;
1162 - (id<FWAdInstance>)adInstance;
1173 - (void)handleStateTransition:(FWRendererStateType)state info:(NSDictionary *)details;
1178 - (id<FWContext>)notificationContext;
1180 - (NSArray * )scheduleAdInstances:(NSArray * )slots DEPRECATED_ATTRIBUTE;
1187 - (NSArray * )scheduleAdInstancesInSlots:(NSArray * )slots;
1193 - (void)requestTimelinePause;
1199 - (void)requestTimelineResume;
1204 - (void)requestContentStateChange:(BOOL)pause DEPRECATED_ATTRIBUTE;
1209 - (void)log:(NSString *)msg;
1216 @protocol FWRenderer <NSObject>
1225 - (id)initWithRendererController:(
id<FWRendererController>)rendererController;
1252 - (NSDictionary *)moduleInfo;
1259 - (NSTimeInterval)duration;
1265 - (NSTimeInterval)playheadTime;
1294 @protocol FWExtension <NSObject>
1303 - (id)initWithFWContext:(
id<FWContext>)context;
1314 #pragma clang arc_cf_code_audited end Definition: FWProtocols.h:1065