33 lines
670 B
C#
33 lines
670 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public static class CallLogUtl
|
|
{
|
|
const string className = "com.coolape.tianrun.U3dPlugin";
|
|
#if UNITY_ANDROID
|
|
static AndroidJavaObject _plugin;
|
|
public static AndroidJavaObject plugin
|
|
{
|
|
get
|
|
{
|
|
if (_plugin == null)
|
|
{
|
|
_plugin = new AndroidJavaObject(className);
|
|
}
|
|
return _plugin;
|
|
}
|
|
}
|
|
#endif
|
|
public static string getCallLog()
|
|
{
|
|
#if UNITY_ANDROID
|
|
return plugin.CallStatic<string>("getCallLog");
|
|
#elif UNITY_IOS
|
|
return "";
|
|
#else
|
|
return "";
|
|
#endif
|
|
}
|
|
}
|