-
- All Implemented Interfaces:
-
android.os.Parcelable
public class AMapWidget extends AidlParams
-
-
Field Summary
Fields Modifier and Type Field Description private Stringidprivate StringmenuIconNameprivate StringmenuTitleprivate StringlightIconNameprivate StringdarkIconNameprivate Stringtextprivate Stringdescriptionprivate intorderprivate booleanrightPanelByDefaultprivate IntentintentOnClickprivate StringgroupIdprivate StringmenuIconUriprivate StringlightIconUriprivate StringdarkIconUripublic final static Parcelable.Creator<AMapWidget>CREATOR
-
Method Summary
Modifier and Type Method Description StringgetId()StringgetMenuIconName()StringgetMenuTitle()StringgetLightIconName()StringgetDarkIconName()StringgetText()StringgetDescription()intgetOrder()voidsetRightPanelByDefault(boolean rightPanelByDefault)IntentgetIntentOnClick()StringgetGroupId()voidsetGroupId(String groupId)StringgetMenuIconUri()StringgetLightIconUri()StringgetDarkIconUri()booleanisRightPanelByDefault()voidsetIconUris(String menuIconUri, String lightIconUri, String darkIconUri)Sets custom widget icons as content URIs. voidwriteToBundle(Bundle bundle)-
Methods inherited from class net.osmand.aidlapi.AidlParams
describeContents, readFromParcel, writeToParcel -
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMenuIconName
String getMenuIconName()
-
getMenuTitle
String getMenuTitle()
-
getLightIconName
String getLightIconName()
-
getDarkIconName
String getDarkIconName()
-
getDescription
String getDescription()
-
getOrder
int getOrder()
-
setRightPanelByDefault
void setRightPanelByDefault(boolean rightPanelByDefault)
-
getIntentOnClick
Intent getIntentOnClick()
-
getGroupId
String getGroupId()
-
setGroupId
void setGroupId(String groupId)
-
getMenuIconUri
String getMenuIconUri()
-
getLightIconUri
String getLightIconUri()
-
getDarkIconUri
String getDarkIconUri()
-
isRightPanelByDefault
boolean isRightPanelByDefault()
-
setIconUris
void setIconUris(String menuIconUri, String lightIconUri, String darkIconUri)
Sets custom widget icons as content URIs. When set, they takeprecedence over the resource-name icons. The external app must grant OsmAndread access to the URIs (e.g. FileProvider URIs with read permission).
- Parameters:
menuIconUri- icon shown in the configure menu (optional).lightIconUri- widget icon for the light theme.darkIconUri- widget icon for the dark theme.
-
writeToBundle
void writeToBundle(Bundle bundle)
-
-
-
-