Interface WebAppInterface
-
- All Known Implementing Classes:
HtmlGameFragment
public interface WebAppInterface
Collection of methods to communicate between Javascript games and Android code.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Notifies the interface implementation to finish the gamevoid
postMessage(java.lang.String message)
Notifies the interface implementation to show a messagevoid
showResult()
Notifies the interface implementation to show the game resultvoid
submitChallenge()
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
-
-