Пример #1
0
        private void SetInstanceCustomProperties(CustomProperties customProperties)
        {
            if (!Configured)
            {
                MobileCenterLog.Error(MobileCenterLog.LogTag, "Mobile Center hasn't been configured. You need to call MobileCenter.Start with appSecret or MobileCenter.Configure first.");
                return;
            }
            if (customProperties == null || customProperties.Properties.Count == 0)
            {
                MobileCenterLog.Error(MobileCenterLog.LogTag, "Custom properties may not be null or empty");
                return;
            }
            var customPropertiesLog = new CustomPropertiesLog();

            customPropertiesLog.Properties = customProperties.Properties;
            _channel.EnqueueAsync(customPropertiesLog);
        }
Пример #2
0
 /// <summary>
 /// Set the custom properties.
 /// </summary>
 /// <param name="customProperties">Custom properties object.</param>
 public static void SetCustomProperties(CustomProperties customProperties)
 {
     PlatformSetCustomProperties(customProperties);
 }
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
 }
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
     iOSMobileCenter.SetCustomProperties(customProperties?.IOSCustomProperties);
 }
Пример #5
0
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
     AndroidMobileCenter.SetCustomProperties(customProperties.AndroidCustomProperties);
 }