MMCustomEventNative Protocol Reference

Conforms to MMCustomEvent
Declared in MMCustomEventNative.h

Overview

This protocol is implemented by classes which can provide content for native ads.

+ customEventWithDelegate: required method

The method should return an instance of MMCustomEventNative.

+ (id<MMCustomEventNative>)customEventWithDelegate:(id<MMCustomEventNativeDelegate>)delegate

Parameters

delegate

Custom event native delegate.

Discussion

The method should return an instance of MMCustomEventNative.

Declared In

MMCustomEventNative.h

– performActionForAsset: required method

Performs an action for the provided asset.

- (void)performActionForAsset:(MMNativeAsset *)asset

Parameters

asset

The asset to perform the action for.

Discussion

Performs an action for the provided asset.

Declared In

MMCustomEventNative.h

– performDefaultAction required method

Performs the native ad’s “default” action.

- (void)performDefaultAction

Discussion

Performs the native ad’s “default” action.

Declared In

MMCustomEventNative.h

  availableComponents required method

The MMNativeComponentTypeIDs of the available components for the native ad.

@property (nonatomic, readonly) NSArray<NSNumber*> *availableComponents

Discussion

The MMNativeComponentTypeIDs of the available components for the native ad.

Declared In

MMCustomEventNative.h

  nativeWrapper required method

An object containing the data for the native ad.

@property (nonatomic, readonly) id<MMNativeWrapper> nativeWrapper

Discussion

An object containing the data for the native ad.

Declared In

MMCustomEventNative.h

– registerViewForInteractions:

Allows the custom event to register a view for the purpose of detecting and tracking user interactions. If the custom event implements this method, it must also implement trackingComponentType.

- (void)registerViewForInteractions:(UIView *)view

Parameters

view

The view to use for tracking interactions. The custom event should be able to treat any user interaction with this view in a manner appropriate for its internal content.

Discussion

Allows the custom event to register a view for the purpose of detecting and tracking user interactions. If the custom event implements this method, it must also implement trackingComponentType.

Declared In

MMCustomEventNative.h

– interactionComponentType

If the custom event has a specific component which should be used for tracking interactions, this method should be implemented. If the custom event implements this method, it must also implement registerViewForInteractions:.

- (NSInteger)interactionComponentType

Discussion

If the custom event has a specific component which should be used for tracking interactions, this method should be implemented. If the custom event implements this method, it must also implement registerViewForInteractions:.

Declared In

MMCustomEventNative.h

– fireImpressionTrackers

Fires any impression trackers associated with the custom event’s content.

- (void)fireImpressionTrackers

Discussion

Fires any impression trackers associated with the custom event’s content.

Declared In

MMCustomEventNative.h