Revisit Incentives
These APIs enable entry missions and shortcut missions that reward players for returning to the game or adding a desktop shortcut.
TT.StartEntranceMission(param)
Starts an entrance mission that rewards the player for returning to the game.
Signature
public static void StartEntranceMission(StartEntranceMissionParam param)Parameters
Field | Type | Description | Required |
|
| Success callback | No |
|
| Failure callback | No |
|
| Completion callback | No |
Example
TT.StartEntranceMission(new StartEntranceMissionParam
{
Success = result => Debug.Log("Entrance mission started"),
Fail = error => Debug.LogError(error.ErrMsg),
Complete = () => Debug.Log("Mission start flow completed")
});TT.GetEntranceMissionReward(param)
Claims the reward for a completed entrance mission.
Signature
public static void GetEntranceMissionReward(GetEntranceMissionRewardParam param)Parameters
Field | Type | Description | Required |
|
| Success callback with reward info | No |
|
| Failure callback | No |
|
| Completion callback | No |
Example
TT.GetEntranceMissionReward(new GetEntranceMissionRewardParam
{
Success = result => Debug.Log("Reward claimed"),
Fail = error => Debug.LogError(error.ErrMsg),
Complete = () => Debug.Log("Reward claim flow completed")
});TT.AddShortcut(param)
Prompts the user to add a desktop shortcut for the mini game.
Signature
public static void AddShortcut(AddShortcutParam param)Parameters
Field | Type | Description | Required |
|
| Success callback | No |
|
| Failure callback | No |
|
| Completion callback | No |
Example
TT.AddShortcut(new AddShortcutParam
{
Success = result => Debug.Log("Shortcut added"),
Fail = error => Debug.LogError(error.ErrMsg),
Complete = () => Debug.Log("Add shortcut flow completed")
});TT.GetShortcutMissionReward(param)
Claims the reward for adding a desktop shortcut.
Signature
public static void GetShortcutMissionReward(GetShortcutMissionRewardParam param)Parameters
Field | Type | Description | Required |
|
| Success callback with reward info | No |
|
| Failure callback | No |
|
| Completion callback | No |
Example
TT.GetShortcutMissionReward(new GetShortcutMissionRewardParam
{
Success = result => Debug.Log("Shortcut reward claimed"),
Fail = error => Debug.LogError(error.ErrMsg),
Complete = () => Debug.Log("Reward claim flow completed")
});