IMNativeDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | IMNativeDelegate.h |
Overview
- A listener for receiving notifications during the lifecycle of an native ad. *
- Note All the events in this listener will be invoked on your application’s UI thread. *
- In most cases your application will need to listen for the following events on an native ad
The outcome of an ad request (if the request succeeded or failed); see nativeDidFinishLoading:(IMNative)native; and native:(IMNative)native didFailToLoadWithError:(IMRequestStatus*)error;
The ad opened an overlay that covered the screen. This means that the user can no longer interact with your application; see nativeDidPresentScreen:(IMNative*)native;
The ad opened overlay was dismissed. The user is now free to interact with your application; see nativeDidDismissScreen:(IMNative*)native;
A user interaction with the ad will result in the User leaving your application context; see userWillLeaveApplicationFromNative:(IMNative*)native;
– nativeAdIsAvailable:
Notifies the delegate that the native ad has downloaded markup
- (void)nativeAdIsAvailable:(IMNative *)native
Discussion
Notifies the delegate that the native ad has downloaded markup
Declared In
IMNativeDelegate.h
– native:gotSignals:
The callback used to give the signals to the delegate. This callback is invoked after getSignals method is invoked on the IMNative instance.
- (void)native:(IMNative *)native gotSignals:(NSData *)signals
Discussion
The callback used to give the signals to the delegate. This callback is invoked after getSignals method is invoked on the IMNative instance.
Declared In
IMNativeDelegate.h
– native:failedToGetSignalsWithError:
Notifies the delegate that the getSignals call on the IMNative instance has failed to return the sginals.
- (void)native:(IMNative *)native failedToGetSignalsWithError:(IMRequestStatus *)status
Discussion
Notifies the delegate that the getSignals call on the IMNative instance has failed to return the sginals.
Declared In
IMNativeDelegate.h
– nativeDidFinishLoading:
Notifies the delegate that the native ad has finished loading
- (void)nativeDidFinishLoading:(IMNative *)native
Discussion
Notifies the delegate that the native ad has finished loading
Declared In
IMNativeDelegate.h
– native:didFailToLoadWithError:
Notifies the delegate that the native ad has failed to load with error.
- (void)native:(IMNative *)native didFailToLoadWithError:(IMRequestStatus *)error
Discussion
Notifies the delegate that the native ad has failed to load with error.
Declared In
IMNativeDelegate.h
– nativeWillPresentScreen:
Notifies the delegate that the native ad would be presenting a full screen content.
- (void)nativeWillPresentScreen:(IMNative *)native
Discussion
Notifies the delegate that the native ad would be presenting a full screen content.
Declared In
IMNativeDelegate.h
– nativeDidPresentScreen:
Notifies the delegate that the native ad has presented a full screen content.
- (void)nativeDidPresentScreen:(IMNative *)native
Discussion
Notifies the delegate that the native ad has presented a full screen content.
Declared In
IMNativeDelegate.h
– nativeWillDismissScreen:
Notifies the delegate that the native ad would be dismissing the presented full screen content.
- (void)nativeWillDismissScreen:(IMNative *)native
Discussion
Notifies the delegate that the native ad would be dismissing the presented full screen content.
Declared In
IMNativeDelegate.h
– nativeDidDismissScreen:
Notifies the delegate that the native ad has dismissed the presented full screen content.
- (void)nativeDidDismissScreen:(IMNative *)native
Discussion
Notifies the delegate that the native ad has dismissed the presented full screen content.
Declared In
IMNativeDelegate.h
– userWillLeaveApplicationFromNative:
Notifies the delegate that the user will be taken outside the application context.
- (void)userWillLeaveApplicationFromNative:(IMNative *)native
Discussion
Notifies the delegate that the user will be taken outside the application context.
Declared In
IMNativeDelegate.h
– nativeAdImpressed:
Notifies the delegate that the native ad impression has been tracked
- (void)nativeAdImpressed:(IMNative *)native
Discussion
Notifies the delegate that the native ad impression has been tracked
Declared In
IMNativeDelegate.h
– native:didInteractWithParams:
Notifies the delegate that the native ad has been interacted with.
- (void)native:(IMNative *)native didInteractWithParams:(NSDictionary *)params
Discussion
Notifies the delegate that the native ad has been interacted with.
Declared In
IMNativeDelegate.h
– nativeDidFinishPlayingMedia:
Notifies the delegate that the native ad has finished playing media.
- (void)nativeDidFinishPlayingMedia:(IMNative *)native
Discussion
Notifies the delegate that the native ad has finished playing media.
Declared In
IMNativeDelegate.h
– userDidSkipPlayingMediaFromNative:
Notifies the delegate that the user has skipped the playing media.
- (void)userDidSkipPlayingMediaFromNative:(IMNative *)native
Discussion
Notifies the delegate that the user has skipped the playing media.
Declared In
IMNativeDelegate.h
– native:adAudioStateChanged:
Notifies the delegate that the media audio state has been changed - mute/unmute.
- (void)native:(IMNative *)native adAudioStateChanged:(BOOL)audioStateMuted
Parameters
audioStateMuted |
is YES when audio is turned off and NO when audio is turned on. |
---|
Discussion
Notifies the delegate that the media audio state has been changed - mute/unmute.
Declared In
IMNativeDelegate.h