-
public class AdminA 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 Admin(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.
-
-
Field Summary
Fields Modifier and Type Field Description private intnotificationId
-
Constructor Summary
Constructors Constructor Description Admin(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
int getNotificationId()
The id passed to notify for the Admin notification.
-
setNotificationId
void setNotificationId(int notificationId)
The id passed to notify for the Admin notification.
-
start
boolean start(Context context)
Starts the ObjectBox Admin HTTP server.
See the class documentation for details.
-
-
-
-