public final class DetailedModelViewerDropdownReceiver extends DropDownReceiver implements DropDown.OnStateListener, LoadModelAsyncTask.Listener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTRAS_URI |
static java.lang.String |
SHOW_3D_VIEW |
DROPDOWN_STATE_FULLSCREEN, DROPDOWN_STATE_NONE, DROPDOWN_STATE_NORMAL, FIVE_EIGTHS_HEIGHT, FIVE_EIGTHS_WIDTH, FIVE_TWELFTHS_HEIGHT, FIVE_TWELFTHS_WIDTH, FULL_HEIGHT, FULL_WIDTH, HALF_HEIGHT, HALF_WIDTH, HANDLE_THICKNESS_LANDSCAPE, HANDLE_THICKNESS_PORTRAIT, NO_HEIGHT, NO_WIDTH, QUARTER_SCREEN, SEVEN_SIXTEENTH_WIDTH, THIRD_HEIGHT, THIRD_WIDTH, THREE_EIGHTHS_HEIGHT, THREE_EIGHTHS_WIDTH, TWO_THIRDS_HEIGHT, TWO_THIRDS_WIDTH
Constructor and Description |
---|
DetailedModelViewerDropdownReceiver(MapView mapView,
android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
disposeImpl()
Any drop down specific disposal implementation that is performed during the
disposal of a drop down.
|
void |
onDropDownClose() |
void |
onDropDownSelectionRemoved() |
void |
onDropDownSizeChanged(double width,
double height) |
void |
onDropDownVisible(boolean v) |
void |
onLoadModelFailure(java.lang.String uri,
java.lang.String reason)
Invoked if loading the model failed
|
void |
onLoadModelSuccess(java.lang.String uri,
Model model)
Invoked if the model was loaded successfully
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
protected void |
onStateRequested(int state)
Signal for a request by the handle.
|
_showDropDown, callResize, closeDropDown, dispose, dropDownAlreadyExists, getAssociationKey, getBackStackCount, getDropDown, getMapView, hideDropDown, isClosed, isPortrait, isRetained, isTablet, isTransient, isVisible, onBackButtonPressed, resize, setAssociationKey, setRetain, setSelected, setSelected, setSelected, setTransient, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, unhideDropDown
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String SHOW_3D_VIEW
public static final java.lang.String EXTRAS_URI
public DetailedModelViewerDropdownReceiver(MapView mapView, android.content.Context context)
public void disposeImpl()
DropDownReceiver
disposeImpl
in class DropDownReceiver
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
public void onDropDownSelectionRemoved()
onDropDownSelectionRemoved
in interface DropDown.OnStateListener
public void onDropDownVisible(boolean v)
onDropDownVisible
in interface DropDown.OnStateListener
public void onDropDownSizeChanged(double width, double height)
onDropDownSizeChanged
in interface DropDown.OnStateListener
public void onDropDownClose()
onDropDownClose
in interface DropDown.OnStateListener
protected void onStateRequested(int state)
DropDownReceiver
onStateRequested
in class DropDownReceiver
state
- DROPDOWN_STATE_FULLSCREEN = 2;
DROPDOWN_STATE_NORMAL = 1;
DROPDOWN_STATE_NONE = 0;public void onLoadModelSuccess(java.lang.String uri, Model model)
LoadModelAsyncTask.Listener
onLoadModelSuccess
in interface LoadModelAsyncTask.Listener
uri
- Model URImodel
- the model; never null
public void onLoadModelFailure(java.lang.String uri, java.lang.String reason)
LoadModelAsyncTask.Listener
onLoadModelFailure
in interface LoadModelAsyncTask.Listener
uri
- Model URIreason
- Reason for failure