Example #1
0
        public static void Load(Event evt)
        {
            JsString oldTC = "This sample has detected that you are not using the most up to date appMobi test container.  This sample's functionality may be compromised as a result.  Touch OK to continue. ";

            if (@typeof(XdkGlobal.AppMobiInit) != "object")
                Alert(oldTC);
        }
Example #2
0
 public new bool DispatchEvent(Event evt) { return default(bool); }
Example #3
0
 public static void UpdateApplication(Event evt)
 {
     // installs an update if one is available
     Xdk.device.InstallUpdate();
 }
Example #4
0
 public static void OnResize(Event evt)
 {
     SetHeightAndWidth();
 }
Example #5
0
 /// <summary>
 /// This function runs once the page is loaded, but appMobi is not yet active
 /// </summary>
 public static void Init(Event evt) { }
Example #6
0
        public static void SendPushMessage(Event evt)
        {
            //play a click
            Xdk.player.StartAudio("images/click-5.mp3");

            //send the notification FROM the application TO the current user of the application
            Xdk.notification.SendPushNotification(chosenUsername, HtmlInputElement.GetById("txtMessage").value, "111");

            //clear the edit field and update the status message
            HtmlInputElement.GetById("txtMessage").value = "";
            HtmlElement.GetById("spnMessage").innerHTML = "Push Message Sent";

            //clear the status message after six seconds
            ClearTimeout(msgTimeout);
            msgTimeout = SetTimeout("HideMessage();", 6000);
        }