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

30 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}
}