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,44 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
using UnityEngine;
|
||||
|
||||
namespace Microsoft.AppCenter.Unity.Crashes.Internal
|
||||
{
|
||||
class WrapperExceptionInternal
|
||||
{
|
||||
public static AndroidJavaObject Create()
|
||||
{
|
||||
return new AndroidJavaObject("com.microsoft.appcenter.crashes.ingestion.models.Exception");
|
||||
}
|
||||
|
||||
public static void SetType(AndroidJavaObject exception, string type)
|
||||
{
|
||||
exception.Call("setType", type);
|
||||
}
|
||||
|
||||
public static void SetMessage(AndroidJavaObject exception, string message)
|
||||
{
|
||||
exception.Call("setMessage", message);
|
||||
}
|
||||
|
||||
public static void SetStacktrace(AndroidJavaObject exception, string stacktrace)
|
||||
{
|
||||
exception.Call("setStackTrace", stacktrace);
|
||||
}
|
||||
|
||||
public static void SetInnerException(AndroidJavaObject exception, AndroidJavaObject innerException)
|
||||
{
|
||||
var javaList = new AndroidJavaObject("java.util.LinkedList");
|
||||
javaList.Call("addLast", innerException);
|
||||
exception.Call("setInnerExceptions", javaList);
|
||||
}
|
||||
|
||||
public static void SetWrapperSdkName(AndroidJavaObject exception, string sdkName)
|
||||
{
|
||||
exception.Call("setWrapperSdkName", sdkName);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user