-
@Deprecated() public class AndroidObjectBrowser extends Admin
A helper class to start the ObjectBox Admin web app used to browse and gain insights into the database.
Usage requires manually configuring some ObjectBox dependencies, see the documentation for more details.
After start is called a notification is displayed. Tap it to open this Admin URL on the device. Alternatively, look for a logcat message from Admin to obtain the URL. Useif (BuildConfig.DEBUG) { boolean started = new AndroidObjectBrowser(boxStore).start(this); Log.i("ObjectBoxAdmin", "Started: " + started); }{@code adb forward}to access the URL on your development machine.Tapping the notification starts a foreground service to keep this app running in the background. Stop this keep-alive service from the notification.
See the web documentation for details.
-
-
Constructor Summary
Constructors Constructor Description AndroidObjectBrowser(BoxStore boxStore)Creates a helper to control Admin for the given {@code boxStore}.
-
Method Summary
Modifier and Type Method Description intgetNotificationId()The id passed to notify for the Admin notification. voidsetNotificationId(int notificationId)The id passed to notify for the Admin notification. booleanstart(Context context)Starts the ObjectBox Admin HTTP server. -
-
Method Detail
-
getNotificationId
@Deprecated() int getNotificationId()
The id passed to notify for the Admin notification.
-
setNotificationId
@Deprecated() void setNotificationId(int notificationId)
The id passed to notify for the Admin notification.
-
start
@Deprecated() boolean start(Context context)
Starts the ObjectBox Admin HTTP server.
See the class documentation for details.
-
-
-
-