コード例 #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);
 }
コード例 #3
0
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
 }
コード例 #4
0
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
     iOSMobileCenter.SetCustomProperties(customProperties?.IOSCustomProperties);
 }
コード例 #5
0
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
     AndroidMobileCenter.SetCustomProperties(customProperties.AndroidCustomProperties);
 }