public class KingdomView extends LinearLayout implements IBlaubotDebugView
Constructor and Description |
---|
KingdomView(Context context,
AttributeSet attrs) |
KingdomView(Context context,
AttributeSet attrs,
int defStyle) |
Modifier and Type | Method and Description |
---|---|
static View |
createKingdomViewListItem(Context context,
State state,
java.lang.String uniqueDeviceId)
Creates a kingdom view list item
|
void |
registerBlaubotInstance(Blaubot blaubot)
Register this view with the given blaubot instance
|
void |
unregisterBlaubotInstance()
Unregisters the associated blaubot instance from a view (if any)
|
public KingdomView(Context context, AttributeSet attrs)
public KingdomView(Context context, AttributeSet attrs, int defStyle)
public static View createKingdomViewListItem(Context context, State state, java.lang.String uniqueDeviceId)
context
- the contextstate
- the state of the device to visualizeuniqueDeviceId
- the unique device idpublic void registerBlaubotInstance(Blaubot blaubot)
registerBlaubotInstance
in interface IBlaubotDebugView
blaubot
- the blaubot instance to connect withpublic void unregisterBlaubotInstance()
IBlaubotDebugView
unregisterBlaubotInstance
in interface IBlaubotDebugView