示例#1
0
 public override bool TrackClick(string clickId, string contentId, WebtrekkParametersCollection additionalParameters)
 {
     using (var pool = new NSAutoreleasePool ()) {
         Thread thread = new Thread (TrackClickThread);
         thread.Priority = ThreadPriority.AboveNormal;
         thread.Start (new object[]{clickId, contentId, additionalParameters});
     }
     return true;
 }
示例#2
0
 /// <summary>
 /// Tracks content.
 /// </summary>
 /// <returns>
 /// TRUE always
 /// </returns>
 /// <param name='contentId'>
 /// Content to be tracked
 /// </param>
 /// <param name='additionalParameters'>
 /// (optional) Additional parameters to be tracked
 /// </param>
 public abstract bool TrackContent(string contentId, WebtrekkParametersCollection additionalParameters);
示例#3
0
 private NSDictionary ParametersCollectionToDictionary(WebtrekkParametersCollection paramCollection)
 {
     try {
         NSDictionary dict = null;
         string[] keys = new string[paramCollection.AdditionalParameters.Length];
         string[] values = new string[paramCollection.AdditionalParameters.Length];
         for (int i = 0; i < paramCollection.AdditionalParameters.Length; i++) {
             keys [i] = paramCollection.AdditionalParameters [i].Name;
             values [i] = paramCollection.AdditionalParameters [i].Value;
         }
         dict = NSDictionary.FromObjectsAndKeys (values, keys);
         return dict;
     } catch (Exception e) {
         SystemLogger.Log(SystemLogger.Module.PLATFORM, "Error parsing Webtrekk Additional Parameters", e);
         return null;
     }
 }