hideAllPois
Command
Remove all Pois from MapView and destroy their associated PoiStyle
Send this JSON-RPC message in the
BND_MESSAGE extra of an Intent with the action ACTION_RNC_BROADCAST, to BeNav's activity or receiver: see Sending commands.Clears every point the client application has displayed, in one call. The usual way to reset the map between jobs, rounds or shifts.
It succeeds whether or not anything was displayed, so it is safe to send unconditionally when starting a new sequence.
Command#
json
{
"jsonrpc": "2.0",
"method": "hideAllPois",
"id": "test_clear_all",
"params": {}
}Response#
Success response when the poi are cleared
json
{
"id": "test_clear_all",
"jsonrpc": "2.0",
"result": {}
}Error
When there's no POI to be cleared, App will return the same generic response
json
{
"id": "test_clear_all",
"jsonrpc": "2.0",
"result": {}
}