public static void SetLogLevel(OneSLogLevel logLevel, OneSLogLevel visualLogLevel)
 {
     if (IntPtr.Size == 8)
     {
         global::ApiDefinition.Messaging.void_objc_msgSend_UInt64_UInt64(class_ptr, Selector.GetHandle("setLogLevel:visualLevel:"), (UInt64)logLevel, (UInt64)visualLogLevel);
     }
     else
     {
         global::ApiDefinition.Messaging.void_objc_msgSend_UInt32_UInt32(class_ptr, Selector.GetHandle("setLogLevel:visualLevel:"), (UInt32)logLevel, (UInt32)visualLogLevel);
     }
 }
Exemple #2
0
        public static void Onesignal_Log(OneSLogLevel logLevel, string message)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }
            var nsmessage = NSString.CreateNative(message);

            if (IntPtr.Size == 8)
            {
                global::ApiDefinition.Messaging.void_objc_msgSend_UInt64_IntPtr(class_ptr, Selector.GetHandle("onesignal_Log:message:"), (UInt64)logLevel, nsmessage);
            }
            else
            {
                global::ApiDefinition.Messaging.void_objc_msgSend_UInt32_IntPtr(class_ptr, Selector.GetHandle("onesignal_Log:message:"), (UInt32)logLevel, nsmessage);
            }
            NSString.ReleaseNative(nsmessage);
        }