public static class NavAppClient.Factory
extends java.lang.Object
onCreate callback:
protected void onCreate(Bundle savedInstanceState) {
// Instantiate the NavAppClient passing in a Context and an ErrorCallback.
mNavappClient = NavAppClient.Factory.make(this, mErrorCallback);
}
And closed in the the Activity onDestroy callback, using
NavAppClient.close()
protected void onDestroy() {
mNavappClient.close();
}
| Modifier and Type | Method and Description |
|---|---|
static <T extends NavAppClient> |
make(android.content.Context context,
ErrorCallback listener)
Create and initialize the NavAppClient object.
|
public static <T extends NavAppClient> T make(android.content.Context context, ErrorCallback listener)
context - A Context.listener - The ErrorCallback listener.java.lang.IllegalArgumentException - if the Context or ErrorCallback is null.java.lang.RuntimeException - if the NavAppClient for some reason cannot be created.