private void SetInstanceCustomProperties(CustomProperties customProperties) { if (!Configured) { AppCenterLog.Error(AppCenterLog.LogTag, NotConfiguredMessage); return; } if (customProperties == null || customProperties.Properties.Count == 0) { AppCenterLog.Error(AppCenterLog.LogTag, "Custom properties may not be null or empty"); return; } _channel.EnqueueAsync(new CustomPropertyLog { Properties = customProperties.Properties }); }
private void SetInstanceCustomProperties(CustomProperties customProperties) { if (!Configured) { AppCenterLog.Error(AppCenterLog.LogTag, "App Center hasn't been configured. " + "You need to call AppCenter.Start with appSecret or AppCenter.Configure first."); return; } if (customProperties == null || customProperties.Properties.Count == 0) { AppCenterLog.Error(AppCenterLog.LogTag, "Custom properties may not be null or empty"); return; } var customPropertiesLog = new CustomPropertyLog(); customPropertiesLog.Properties = customProperties.Properties; _channel.EnqueueAsync(customPropertiesLog); }
static void PlatformSetCustomProperties(CustomProperties customProperties) { AndroidAppCenter.SetCustomProperties(customProperties.AndroidCustomProperties); }
static void PlatformSetCustomProperties(CustomProperties customProperties) { }
static void PlatformSetCustomProperties(CustomProperties customProperties) { MacOSAppCenter.SetCustomProperties(customProperties?.IOSCustomProperties); }
/// <summary> /// Set the custom properties. /// </summary> /// <param name="customProperties">Custom properties object.</param> public static void SetCustomProperties(CustomProperties customProperties) { PlatformSetCustomProperties(customProperties); }