MLGAMission Class Reference

Inherits from NSObject
Declared in MLGameAnalytics.h

Overview

Track game mission events.

+ onBegin:type:

Tracks the occurrence of beginning a specified mission.

+ (void)onBegin:(NSString *)missionId type:(nullable NSString *)type

Parameters

missionId

The customize mission id.

type

The mission type

Declared In

MLGameAnalytics.h

+ onPause:

Suspend the mission tracking timer.

+ (void)onPause:(NSString *)missionId

Parameters

missionId

The mission id

Declared In

MLGameAnalytics.h

+ pauseAll

Suspend all the mission tracking timers.

+ (void)pauseAll

Declared In

MLGameAnalytics.h

+ onResume:

Resume the tracking of the mission with id missionId.

+ (void)onResume:(NSString *)missionId

Parameters

missionId

The customize mission id.

Declared In

MLGameAnalytics.h

+ resumeAll

Resume all the mission trackings.

+ (void)resumeAll

Declared In

MLGameAnalytics.h

+ onCompleted:

Tracks the occurrence of completion a specified mission.

+ (void)onCompleted:(NSString *)missionId

Parameters

missionId

The customize mission id.

Declared In

MLGameAnalytics.h

+ onFailed:failedCause:

Tracks the occurrence of failure a specified mission.

+ (void)onFailed:(NSString *)missionId failedCause:(nullable NSString *)cause

Parameters

missionId

The customize mission id.

cause

Reason of the mission failure

Declared In

MLGameAnalytics.h