Example to create a simple Android App using Ceylon Lang
- Ceylon 1.3.x
- Intellij Plugin
- Android Studio
Using union types can create a single response from server
void response ( Anything(Error | Response? ) response);
Using interface to be able create interfaces with methods without implementation or implemented methods
shared interface View {
shared formal void printError(String message);
shared default void showResult(Result result) {
print(result.string);
}
}
Be able to object declaration to create a simple server config
shared object serverconfig {
shared String baseUrl = "https://androidrules.com";
}
Be able to create callable functions to replace callback interfaces
function response(Response response) => print(response.string);