July 2017
Intermediate to advanced
466 pages
11h 24m
English
Let's start by adding Twitter to our preferences screen. Before we can do any integration, we need to be able to configure the application, or, more accurately, the Twitter module, so that it can connect as a specific user. To enable that, we'll add a new interface to the API module as follows:
public abstract class SocialMediaPreferencesController {
public abstract Tab getTab();
public abstract void savePreferences();
}
This interface will give Sunago two hooks into the module--one giving the module a chance to draw its own preferences user interface, and one to allow it to save those preferences. We can then implement that in our module. Before we do so, though, let's see how the application will find ...
Read now
Unlock full access