Пример #1
0
 static void PlatformStart(params Type[] services)
 {
     SetWrapperSdk();
     foreach (var service in GetServices(services))
     {
         MacOSAppCenter.StartService(service);
     }
 }
Пример #2
0
        static void PlatformStart(string appSecret, params Type[] services)
        {
            SetWrapperSdk();
            string parsedSecret;

            try
            {
                parsedSecret = GetSecretAndTargetForPlatform(appSecret, PlatformIdentifier);
            }
            catch (AppCenterException ex)
            {
                AppCenterLog.Assert(AppCenterLog.LogTag, ex.Message);
                return;
            }
            MacOSAppCenter.Start(parsedSecret, GetServices(services));
        }
Пример #3
0
 static void PlatformSetLogUrl(string logUrl)
 {
     MacOSAppCenter.SetLogUrl(logUrl);
 }
Пример #4
0
 static void PlatformSetUserId(string userId)
 {
     MacOSAppCenter.SetUserId(userId);
 }
Пример #5
0
 internal static void PlatformUnsetInstance()
 {
     MacOSAppCenter.ResetSharedInstance();
 }
Пример #6
0
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
     MacOSAppCenter.SetCustomProperties(customProperties?.IOSCustomProperties);
 }
Пример #7
0
        static void SetWrapperSdk()
        {
            MacOSWrapperSdk wrapperSdk = new MacOSWrapperSdk(WrapperSdk.Version, WrapperSdk.Name, Constants.Version, null, null, null);

            MacOSAppCenter.SetWrapperSdk(wrapperSdk);
        }
Пример #8
0
        static Task <Guid?> PlatformGetInstallIdAsync()
        {
            Guid?installId = Guid.Parse(MacOSAppCenter.InstallId().AsString());

            return(Task.FromResult(installId));
        }
Пример #9
0
 static Task PlatformSetEnabledAsync(bool enabled)
 {
     MacOSAppCenter.SetEnabled(enabled);
     return(Task.FromResult(default(object)));
 }
Пример #10
0
 static Task <bool> PlatformIsEnabledAsync()
 {
     return(Task.FromResult(MacOSAppCenter.IsEnabled()));
 }
Пример #11
0
 static void PlatformConfigure(string appSecret)
 {
     SetWrapperSdk();
     MacOSAppCenter.ConfigureWithAppSecret(appSecret);
 }