chicken_dy/Assets/HCMiniSdk/Scripts/WebGL/Interface/HCIBase.cs

30 lines
1.1 KiB
C#
Raw Permalink Normal View History

2024-03-07 12:12:48 +00:00
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;
}
}