public static class ChirpBrowser.Builder
extends java.lang.Object
ChirpBrowser
.Constructor and Description |
---|
Builder(java.lang.String serviceName) |
Modifier and Type | Method and Description |
---|---|
ChirpBrowser.Builder |
listener(ChirpBrowserListener l)
Sets the listener that will receive callbacks from the
ChirpBrowser |
ChirpBrowser.Builder |
looper(Handler h)
Set the
android.os.Handler of the android.os.Looper to be used
for callbacks to the ChirpBrowserListener . |
ChirpBrowser |
start(Application app)
Builds, starts and returns the
ChirpBrowser . |
public ChirpBrowser.Builder listener(ChirpBrowserListener l)
ChirpBrowser
l
- the listener to use for callbacks. null
is acceptableBuilder
object for method chainingpublic ChirpBrowser.Builder looper(Handler h)
android.os.Handler
of the android.os.Looper
to be used
for callbacks to the ChirpBrowserListener
. Default is the main looper.h
- the android.os.Handler
to use for callbacks. null
means to use the default looper (main).Builder
object for method chainingpublic ChirpBrowser start(Application app)
ChirpBrowser
.app
- the Application
object is used instead of a Context
to make sure an Activity
, which could leak, isn't passed in.ChirpBrowser