static void PlatformStart(params Type[] services) { SetWrapperSdk(); foreach (var service in GetServices(services)) { MacOSAppCenter.StartService(service); } }
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)); }
static void PlatformSetLogUrl(string logUrl) { MacOSAppCenter.SetLogUrl(logUrl); }
static void PlatformSetUserId(string userId) { MacOSAppCenter.SetUserId(userId); }
internal static void PlatformUnsetInstance() { MacOSAppCenter.ResetSharedInstance(); }
static void PlatformSetCustomProperties(CustomProperties customProperties) { MacOSAppCenter.SetCustomProperties(customProperties?.IOSCustomProperties); }
static void SetWrapperSdk() { MacOSWrapperSdk wrapperSdk = new MacOSWrapperSdk(WrapperSdk.Version, WrapperSdk.Name, Constants.Version, null, null, null); MacOSAppCenter.SetWrapperSdk(wrapperSdk); }
static Task <Guid?> PlatformGetInstallIdAsync() { Guid?installId = Guid.Parse(MacOSAppCenter.InstallId().AsString()); return(Task.FromResult(installId)); }
static Task PlatformSetEnabledAsync(bool enabled) { MacOSAppCenter.SetEnabled(enabled); return(Task.FromResult(default(object))); }
static Task <bool> PlatformIsEnabledAsync() { return(Task.FromResult(MacOSAppCenter.IsEnabled())); }
static void PlatformConfigure(string appSecret) { SetWrapperSdk(); MacOSAppCenter.ConfigureWithAppSecret(appSecret); }