Interface WebAppInterface
-
- All Known Implementing Classes:
HtmlGameFragment
public interface WebAppInterfaceCollection of methods to communicate between Javascript games and Android code.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Notifies the interface implementation to finish the gamevoidpostMessage(java.lang.String message)Notifies the interface implementation to show a messagevoidshowResult()Notifies the interface implementation to show the game resultvoidsubmitChallenge()Notifies the interface implementation to get the game result from the server
-
-
-
Method Detail
-
submitChallenge
void submitChallenge()
Notifies the interface implementation to get the game result from the server
-
showResult
void showResult()
Notifies the interface implementation to show the game result
-
close
void close()
Notifies the interface implementation to finish the game
-
postMessage
void postMessage(java.lang.String message)
Notifies the interface implementation to show a message- Parameters:
message- message to show
-
-