app center;增加發送ping的秒
This commit is contained in:
1 parent
1bd1ffdb5a
commit
d754ff3b15
719 files changed
+34172
-2875
No files matched your search
@@ -0,0 +1,87 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
using Microsoft.AppCenter.Unity.Analytics.Internal;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Microsoft.AppCenter.Unity.Analytics
|
||||
{
|
||||
#if UNITY_IOS
|
||||
using RawType = System.IntPtr;
|
||||
#elif UNITY_ANDROID
|
||||
using RawType = UnityEngine.AndroidJavaObject;
|
||||
#else
|
||||
using RawType = System.Object;
|
||||
#endif
|
||||
|
||||
public class PropertyConfigurator
|
||||
{
|
||||
private readonly RawType _rawObject;
|
||||
|
||||
internal RawType GetRawObject()
|
||||
{
|
||||
return _rawObject;
|
||||
}
|
||||
|
||||
public PropertyConfigurator(RawType rawObject)
|
||||
{
|
||||
_rawObject = rawObject;
|
||||
}
|
||||
|
||||
public void SetAppName(string appName)
|
||||
{
|
||||
PropertyConfiguratorInternal.SetAppName(_rawObject, appName);
|
||||
}
|
||||
|
||||
public void SetAppVersion(string appVersion)
|
||||
{
|
||||
PropertyConfiguratorInternal.SetAppVersion(_rawObject, appVersion);
|
||||
}
|
||||
|
||||
public void SetAppLocale(string appLocale)
|
||||
{
|
||||
PropertyConfiguratorInternal.SetAppLocale(_rawObject, appLocale);
|
||||
}
|
||||
|
||||
public void SetEventProperty(string key, string value)
|
||||
{
|
||||
PropertyConfiguratorInternal.SetEventProperty(_rawObject, key, value);
|
||||
}
|
||||
|
||||
public void SetEventProperty(string key, DateTime value)
|
||||
{
|
||||
PropertyConfiguratorInternal.SetEventProperty(_rawObject, key, value);
|
||||
}
|
||||
|
||||
public void SetEventProperty(string key, long value)
|
||||
{
|
||||
PropertyConfiguratorInternal.SetEventProperty(_rawObject, key, value);
|
||||
}
|
||||
|
||||
public void SetEventProperty(string key, double value)
|
||||
{
|
||||
PropertyConfiguratorInternal.SetEventProperty(_rawObject, key, value);
|
||||
}
|
||||
|
||||
public void SetEventProperty(string key, bool value)
|
||||
{
|
||||
PropertyConfiguratorInternal.SetEventProperty(_rawObject, key, value);
|
||||
}
|
||||
|
||||
public void SetUserId(string userId)
|
||||
{
|
||||
PropertyConfiguratorInternal.SetUserId(_rawObject, userId);
|
||||
}
|
||||
|
||||
public void RemoveEventProperty(string key)
|
||||
{
|
||||
PropertyConfiguratorInternal.RemoveEventProperty(_rawObject, key);
|
||||
}
|
||||
|
||||
public void CollectDeviceId()
|
||||
{
|
||||
PropertyConfiguratorInternal.CollectDeviceId(_rawObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user