Appearance
关卡上报
关卡开始
version>=1.0.0
csharp
public static void TrackLevelStart(LevelEventParam param);
typescript
export function trackLevelStart(params: LevelParam): void;
java
public static void trackLevelStart(LevelEventParam param);
objc
+ (void)trackLevelStart:(LevelEventParam *)param;
LevelParam参数
参数 | 类型 | 说明 | 默认值 |
---|---|---|---|
level | number | 关卡 | 必传 |
mode | string | 模式 | 'game' |
关卡失败
version>=1.0.0
csharp
public static void TrackLevelLose(LevelEventParam param);
typescript
export function trackLevelLose(params: LevelLoseParam): void;
java
public static void trackLevelLose(LevelEventParam param);
objc
+ (void)trackLevelLose:(LevelEventParam *)param;
LevelLoseParam参数
参数 | 类型 | 说明 | 默认值 |
---|---|---|---|
level | number | 关卡 | 必传 |
progress | number | 进度,百分制,整数 | 必传 |
useTime | number | 用时,单位秒,整数 | 必传 |
revive | boolean | 是否复活 | false |
关卡通关
version>=1.0.0
csharp
public static void TrackLevelPass(LevelEventParam param);
typescript
export function trackLevelPass(params: LevelPassParam): void;
java
public static void trackLevelPass(LevelEventParam param);
objc
+ (void)trackLevelPass:(LevelEventParam *)param;
LevelPassParam参数
参数 | 类型 | 说明 | 默认值 |
---|---|---|---|
level | number | 关卡 | 必传 |
mode | string | 模式 | 'game' |
useTime | number | 用时,单位秒,整数 | 必传 |
revive | boolean | 是否复活 | false |
关卡复活
version>=1.1.2
csharp
public static void TrackLevelRevive(LevelEventParam param);
typescript
export function trackLevelPass(params: LevelPassParam): void;
java
public static void trackLevelPass(LevelEventParam param);
objc
+ (void)trackLevelPass:(LevelEventParam *)param;
LevelReviveParam参数
参数 | 类型 | 说明 | 默认值 |
---|---|---|---|
level | number | 关卡 | 必传 |
mode | string | 模式 | 'game' |
useTime | number | 用时,单位秒,整数 | 必传 |
道具使用
version>=1.0.0
csharp
public static void trackLevelPropUse(params: LevelPropUseParam);
typescript
export function trackLevelPropUse(params: LevelPropUseParam): void;
java
public static void trackLevelPropUse(LevelPropUseParam param);
objc
+ (void)trackLevelPropUse:(LevelPropUseParam *)param;
LevelPropUseParam参数
参数 | 类型 | 说明 | 默认值 |
---|---|---|---|
level | number | 关卡 | 必传 |
mode | string | 模式 | 'game' |
progress | number | 进度,百分制,整数 | 必传 |
prop | string | 道具名称 | 必传 |
关键操作
version>=1.0.0
csharp
public static void TrackLevelOperate(LevelEventParam param);
typescript
export function trackLevelOperate(params: LevelOperateParam): void;
java
public static void trackLevelOperate(LevelEventParam param);
objc
+ (void)trackLevelOperate:(LevelEventParam *)param;
LevelOperateParam参数
参数 | 类型 | 说明 | 默认值 |
---|---|---|---|
level | number | 关卡 | 必传 |
mode | string | 模式 | 'game' |
progress | number | 进度,百分制,整数 | 必传 |
operate | string | 操作名称 | 必传 |