30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
|
||
namespace HC
|
||
{
|
||
public interface HCIBase
|
||
{
|
||
void Vibrate(int shakeType, float intensity = 1);
|
||
#if UNITY_WEBGL && WEBGL_BYTEDANCE
|
||
bool StartRecord(bool isRecordAudio, int maxRecordTimeSec = 600, Action startCallback = null, Action<int, string> errorCallback = null, Action<string> timeoutCallback = null);
|
||
bool StopRecord(Action<string> completeCallback = null, Action<int, string> errorCallback = null, List<TimeRange> clipRanges = null, bool autoMerge = true);
|
||
|
||
void CheckScene(string scene, Action<bool> success, Action complete, Action<int, string> error);
|
||
void NavigateToScene(string scene, Action success, Action complete, Action<int, string> error);
|
||
void OnShowWithDict(Action<Dictionary<string, object>> param);
|
||
#endif
|
||
void OpenCustomerService(Dictionary<string,object> param);
|
||
|
||
void ExitApp();
|
||
}
|
||
|
||
public struct TimeRange
|
||
{
|
||
/// <summary>开始时间,单位ms</summary>
|
||
public int start;
|
||
|
||
/// <summary>结束时间,单位ms</summary>
|
||
public int end;
|
||
}
|
||
} |