call log
This commit is contained in:
32
Assets/trCRM/Scripts/call/CallLogUtl.cs
Normal file
32
Assets/trCRM/Scripts/call/CallLogUtl.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
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
|
||||
|
||||
#else
|
||||
return "";
|
||||
#endif
|
||||
}
|
||||
}
|
||||
11
Assets/trCRM/Scripts/call/CallLogUtl.cs.meta
Normal file
11
Assets/trCRM/Scripts/call/CallLogUtl.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 06baaefd3505747e19fe243a0b84bc56
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user