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); }
public new bool DispatchEvent(Event evt) { return default(bool); }
public static void UpdateApplication(Event evt) { // installs an update if one is available Xdk.device.InstallUpdate(); }
public static void OnResize(Event evt) { SetHeightAndWidth(); }
/// <summary> /// This function runs once the page is loaded, but appMobi is not yet active /// </summary> public static void Init(Event evt) { }
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); }