Class ServiceData
java.lang.Object
org.robolectric.manifest.PackageItemData
org.robolectric.manifest.ServiceData
Holds parsed service data from manifest.
-
Field Summary
Fields inherited from class PackageItemData
metaData, name -
Constructor Summary
ConstructorsConstructorDescriptionServiceData(Map<String, String> attributes, MetaData metaData, List<IntentFilterData> intentFilters) -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the map for all attributes defined for the service.Get the intent filters defined for the service.booleanbooleanReturns whether this service is exported by checking the XML attribute.voidsetPermission(String permission) Methods inherited from class PackageItemData
getMetaData, getName
-
Constructor Details
-
ServiceData
-
-
Method Details
-
getActions
-
addAction
-
setPermission
-
getPermission
-
getIntentFilters
Get the intent filters defined for the service.- Returns:
- A list of intent filters.
-
getAllAttributes
-
isExported
public boolean isExported()Returns whether this service is exported by checking the XML attribute.- Returns:
- true if the service is exported
-
isEnabled
public boolean isEnabled()
-