JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ApplilinkVideoController Class Reference

The advert-video host controller. More...

#include <ApplilinkVideoController.h>

Inheritance diagram for ApplilinkVideoController:
Collaboration diagram for ApplilinkVideoController:

Instance Methods

(void) - parentWindowFlag:
 Sets parentWindowFlag .
(BOOL) - setQuery:autoPlay:applilinkParams:delegate:
 Parses the advert query and builds the player.
(void) - toucheEnded
 Called when the whole player finishes; forwards -closeNotice: to the SDK delegate.
(void) - appListDidAppear
 Called when the app-list web view appears; opens the store URL then closes the player.
(void) - willAnimateRotationToInterfaceOrientation:duration:
 Rebuilds the movie view laid out for the given interface orientation.
(void) - viewDealloc
 Tears the player and web view down and clears every parsed parameter.
Instance Methods inherited from <VideoViewDelegate>
(void) - viewReady:
 The on-screen chrome finished building.
(void) - movieReady
 The movie became ready to play.
(void) - movieStart
 The movie started playing.
(void) - movieEnd
 The movie stopped at its end (or was skipped).
(void) - movieCacheEnd
 The movie finished buffering to the cache.
(void) - movieSoundUse
 The movie is playing with sound.
(void) - movieError
 The movie could not stream (timeout or buffer stall).
(void) - movieAutoStartError
 The movie could not auto-start because it was not yet cached.
(void) - closeNotice:
 The player wants to close.
(void) - storeNotice:
 The player wants to open the store.
Instance Methods inherited from <SdkViewDelegate>
(void) - startedNotice
 The advert started.
(void) - openedNotice
 The advert opened.
(void) - closeNotice
 The advert closed.
(void) - closeNotice:
 An ApplilinkWebView "close" link was followed.
(void) - viewReady:
 An ApplilinkWebView finished loading and is ready.
(void) - repeatNotice:
 An ApplilinkWebView "repeat" link was followed.
(void) - storeNotice:
 An ApplilinkWebView "store" link was followed.
(void) - linkErrorNotice:error:
 An ApplilinkWebView load error occurred.
(void) - failOpenNoticeWithError:
 An advert open failed.
(void) - failLinkNoticeWithError:
 An advert link failed.
(void) - openCancelWithError:
 The delegate cancelled an advert open.
(void) - appStoreOpenedNoticeWithAppParam:
 The App Store product page opened.
(void) - appStoreCloseNoticeWithAppParam:
 The App Store product page is about to close.
(void) - appStoreClosedNoticeWithAppParam:
 The App Store product page closed.
(void) - appStoreFailLoadNoticeWithError:appParam:
 An App Store product-page load failed.
(void) - appStoreTransitionNoticeWithAppParam:
 The App Store product page transitioned.

Properties

id< SdkViewDelegate > sdkDelegate
 The SDK delegate told about ready and close events.
AppliView * appliView
 The black full-screen advert surface hosting the player.
VideoView * videoView
 The advert-movie player.
ApplilinkWebView * webView
 The end-card web view shown once the movie finishes.
UIView * baseView
 An unused base view.
ApplilinkIndicator * indicator
 The loading overlay shown while the movie prepares.
id applilinkDelegate
 The applilink core delegate carried through the analysis and notice calls.
ApplilinkParameters * applilinkParams
 The advert request parameters.
UIView * videoBaseView
 An unused secondary base view.
NSString * movieUrl
 The movie URL parsed from the query.
NSString * posterUrlRect
 The poster-image URL parsed from the query.
NSString * storeUrl
 The store URL parsed from the query.
NSString * storeId
 The store identifier parsed from the query.
NSString * endUrl
 The movie-end URL.
NSString * movieVoiceFlg
 The sound flag parsed from the query.
NSString * adType
 The advert type parsed from the query.
NSString * adModel
 The advert model parsed from the query.
NSString * adLocation
 The advert location parsed from the query.
NSString * impressionId
 The impression identifier parsed from the query.
NSString * appliIdTo
 The destination application identifier.
NSString * adIdFrom
 The source advert identifier.
NSString * adIdTo
 The destination advert identifier.
NSString * creativeId
 The creative identifier parsed from the query.
NSString * displayNumber
 The display-number parameter.
NSString * incentiveType
 The incentive-type parameter.
NSString * installFlg
 The install flag parsed from the query.
id requestCode
 The caller's request code, untyped in the metadata.
BOOL movieEndViewReadyFlg
 Set once the end-card web view has finished loading and is ready to be shown.
BOOL parentWindowFlag
 Set when the controller's view is hosted directly in the parent window rather than a subview, which changes the status-bar offset compensation.

Detailed Description

The advert-video host controller.

Adopts VideoViewDelegate (the player's callbacks) and SdkViewDelegate (the end-card web view's callbacks); the two protocols share the ready/close/repeat/store/error selectors, which is why one controller can be both.

Method Documentation

◆ appListDidAppear

- (void) appListDidAppear

Called when the app-list web view appears; opens the store URL then closes the player.

Ghidra address:
0x225d08

◆ parentWindowFlag:

- (void) parentWindowFlag: (BOOL) parentWindowFlag

Sets parentWindowFlag .

A hand-written setter distinct from the synthesised one.

Parameters
parentWindowFlagThe new flag value.
Ghidra address:
0x223c80
Ghidra address:
0x223c80

◆ setQuery:autoPlay:applilinkParams:delegate:

- (BOOL) setQuery: (nullable NSString *) query
autoPlay: (BOOL) autoPlay
applilinkParams: (nullable ApplilinkParameters *) applilinkParams
delegate: (nullable id) delegate 

Parses the advert query and builds the player.

Splits query on "&" into key=value pairs, URL-decodes each recognised value into its matching parameter ivar, then builds the movie view. When autoPlay is set the loading indicator is released on the main queue and the player is told to auto-start.

Parameters
queryThe advert query string.
autoPlayWhether to start playback as soon as the movie is ready.
applilinkParamsThe request parameters (stored directly, not copied).
delegateThe applilink core delegate (stored into applilinkDelegate ).
Returns
YES when query was non-nil and parsed, NO otherwise.
Ghidra address:
0x223c90

◆ toucheEnded

- (void) toucheEnded

Called when the whole player finishes; forwards -closeNotice: to the SDK delegate.

Ghidra address:
0x225678

Reimplemented from <AppliViewDelegate>.

◆ viewDealloc

- (void) viewDealloc

Tears the player and web view down and clears every parsed parameter.

Ghidra address:
0x226418

◆ willAnimateRotationToInterfaceOrientation:duration:

- (void) willAnimateRotationToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation
duration: (NSTimeInterval) duration 

Rebuilds the movie view laid out for the given interface orientation.

Parameters
interfaceOrientationThe target interface orientation.
durationThe rotation animation duration.
Ghidra address:
0x225650
Ghidra address:
0x225650

Property Documentation

◆ adIdFrom

- (NSString*) adIdFrom
readwritenonatomicstrong

The source advert identifier.

Ghidra address:
0x226ba8 (getter)

◆ adIdTo

- (NSString*) adIdTo
readwritenonatomicstrong

The destination advert identifier.

Ghidra address:
0x226bf0 (getter)

◆ adLocation

- (NSString*) adLocation
readwritenonatomicstrong

The advert location parsed from the query.

Ghidra address:
0x226ad0 (getter)

◆ adModel

- (NSString*) adModel
readwritenonatomicstrong

The advert model parsed from the query.

Ghidra address:
0x226a88 (getter)

◆ adType

- (NSString*) adType
readwritenonatomicstrong

The advert type parsed from the query.

Ghidra address:
0x226a40 (getter)

◆ appliIdTo

- (NSString*) appliIdTo
readwritenonatomicstrong

The destination application identifier.

Ghidra address:
0x226b60 (getter)

◆ applilinkDelegate

- (id) applilinkDelegate
readwritenonatomicweak

The applilink core delegate carried through the analysis and notice calls.

Weak (the metadata attribute is W ) and untyped in the metadata, so a bare id .

Ghidra address:
0x2267e8 (getter)

◆ applilinkParams

- (ApplilinkParameters*) applilinkParams
readwritenonatomiccopy

The advert request parameters.

Copied on assignment.

Ghidra address:
0x22681c (getter)

◆ appliView

- (AppliView*) appliView
readwritenonatomicstrong

The black full-screen advert surface hosting the player.

Ghidra address:
0x226680 (getter)

◆ baseView

- (UIView*) baseView
readwritenonatomicstrong

An unused base view.

Retained by the property but never assigned in the recovered code.

Ghidra address:
0x226758 (getter)

◆ creativeId

- (NSString*) creativeId
readwritenonatomicstrong

The creative identifier parsed from the query.

Ghidra address:
0x226c38 (getter)

◆ displayNumber

- (NSString*) displayNumber
readwritenonatomicstrong

The display-number parameter.

Ghidra address:
0x226c80 (getter)

◆ endUrl

- (NSString*) endUrl
readwritenonatomicstrong

The movie-end URL.

Ghidra address:
0x2269b0 (getter)

◆ impressionId

- (NSString*) impressionId
readwritenonatomicstrong

The impression identifier parsed from the query.

Ghidra address:
0x226b18 (getter)

◆ incentiveType

- (NSString*) incentiveType
readwritenonatomicstrong

The incentive-type parameter.

Ghidra address:
0x226cc8 (getter)

◆ indicator

- (ApplilinkIndicator*) indicator
readwritenonatomicstrong

The loading overlay shown while the movie prepares.

Ghidra address:
0x2267a0 (getter)

◆ installFlg

- (NSString*) installFlg
readwritenonatomicstrong

The install flag parsed from the query.

Ghidra address:
0x226d10 (getter)

◆ movieEndViewReadyFlg

- (BOOL) movieEndViewReadyFlg
readwritenonatomicassign

Set once the end-card web view has finished loading and is ready to be shown.

Ghidra address:
0x226d78 (getter)

◆ movieUrl

- (NSString*) movieUrl
readwritenonatomicstrong

The movie URL parsed from the query.

Ghidra address:
0x226890 (getter)

◆ movieVoiceFlg

- (NSString*) movieVoiceFlg
readwritenonatomicstrong

The sound flag parsed from the query.

Ghidra address:
0x2269f8 (getter)

◆ parentWindowFlag

- (BOOL) parentWindowFlag
readwritenonatomicassign

Set when the controller's view is hosted directly in the parent window rather than a subview, which changes the status-bar offset compensation.

Ghidra address:
0x226d98 (getter)

◆ posterUrlRect

- (NSString*) posterUrlRect
readwritenonatomicstrong

The poster-image URL parsed from the query.

Ghidra address:
0x2268d8 (getter)

◆ requestCode

- (id) requestCode
readwritenonatomicstrong

The caller's request code, untyped in the metadata.

Ghidra address:
0x226d58 (getter)

◆ sdkDelegate

- (id<SdkViewDelegate>) sdkDelegate
readwritenonatomicweak

The SDK delegate told about ready and close events.

Weak (the metadata attribute is W ): the controller reports to it but does not own it.

Ghidra address:
0x22664c (getter)

◆ storeId

- (NSString*) storeId
readwritenonatomicstrong

The store identifier parsed from the query.

Ghidra address:
0x226968 (getter)

◆ storeUrl

- (NSString*) storeUrl
readwritenonatomicstrong

The store URL parsed from the query.

Ghidra address:
0x226920 (getter)

◆ videoBaseView

- (UIView*) videoBaseView
readwritenonatomicstrong

An unused secondary base view.

Retained by the property but never assigned.

Ghidra address:
0x226848 (getter)

◆ videoView

- (VideoView*) videoView
readwritenonatomicstrong

The advert-movie player.

Ghidra address:
0x2266c8 (getter)

◆ webView

- (ApplilinkWebView*) webView
readwritenonatomicstrong

The end-card web view shown once the movie finishes.

Ghidra address:
0x226710 (getter)

The documentation for this class was generated from the following files: