Last active
November 21, 2019 22:48
-
-
Save crow/0d4701fe42a283ff83a8a833e9f0d991 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
document.addEventListener("ualibraryready", function(){ | |
console.log("Resolution event example."); | |
}); | |
</script> | |
<h1>Hi there, once more with feeling.</h1> | |
<button onclick="UAirship.dismiss({ | |
'type' : 'button_click', | |
'button_info' : { | |
'id' : 'button identifier', | |
'label' : {'text' : 'foo'}, | |
'actions' : { | |
'open_external_url_action' : 'https://airship.com' | |
} | |
} | |
});">button click</button> | |
<h2 onclick="UAirship.dismiss({'type' : 'button_click', 'button_info' : {'label' : {'text' : 'foo'}, 'id' : 'bar'}});">button click</h1> | |
<h2 onclick="UAirship.dismiss({'type' : 'button_click', 'button_info' : {'label' : {'text' : 'foo'}, 'id' : 'bar'}});">button click</h1> | |
<h2 onclick="UAirship.dismiss({'type' : 'message_click'});">message click</h2> | |
<h2 onclick="UAirship.dismiss({'type' : 'user_dismissed'});">user dismissed</h2> | |
<h2 onclick="UAirship.dismiss({'type' : 'timed_out'});">timed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment