-
- All Implemented Interfaces:
-
android.os.Parcelable
public class AWidgetGroup extends AidlParams
Describes a group of external (AIDL) widgets. Widgets are assigned to a group by sharing the same id via setGroupId; this object provides the group title, description and icons shown in OsmAnd "Configure screen"
Icons are referenced by name from OsmAnd app resources (the same way widget icons work)
-
-
Field Summary
Fields Modifier and Type Field Description private Stringidprivate Stringnameprivate Stringdescriptionprivate StringdayIconNameprivate StringnightIconNameprivate StringdayIconUriprivate StringnightIconUripublic final static Parcelable.Creator<AWidgetGroup>CREATOR
-
Constructor Summary
Constructors Constructor Description AWidgetGroup(String id, String name, String description)AWidgetGroup(Parcel in)
-
Method Summary
Modifier and Type Method Description StringgetId()StringgetName()StringgetDescription()StringgetDayIconName()StringgetNightIconName()StringgetDayIconUri()StringgetNightIconUri()voidsetIconNames(String dayIconName, String nightIconName)Sets the group icons (by resource name from OsmAnd app resources). voidsetIconUris(String dayIconUri, String nightIconUri)Sets custom group 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
-
getDescription
String getDescription()
-
getDayIconName
String getDayIconName()
-
getNightIconName
String getNightIconName()
-
getDayIconUri
String getDayIconUri()
-
getNightIconUri
String getNightIconUri()
-
setIconNames
void setIconNames(String dayIconName, String nightIconName)
Sets the group icons (by resource name from OsmAnd app resources).
- Parameters:
dayIconName- icon name for the light themenightIconName- icon name for the dark theme
-
setIconUris
void setIconUris(String dayIconUri, String nightIconUri)
Sets custom group icons as content URIs. When set, they takeprecedence over the resource-name icons. The external app must grant OsmAndread access to the URIs.
- Parameters:
dayIconUri- group icon for the light theme.nightIconUri- group icon for the dark theme.
-
writeToBundle
void writeToBundle(Bundle bundle)
-
-
-
-