Package org.robolectric.manifest
Class BroadcastReceiverData
java.lang.Object
org.robolectric.manifest.PackageItemData
org.robolectric.manifest.BroadcastReceiverData
public class BroadcastReceiverData extends PackageItemData
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BroadcastReceiverData(String className, MetaData metaData)
BroadcastReceiverData(Map<String,String> attributes, MetaData metaData, List<IntentFilterData> intentFilters)
-
Method Summary
Modifier and Type Method Description void
addAction(String action)
List<String>
getActions()
Map<String,String>
getAllAttributes()
Get the map for all attributes defined for the broadcast receiver.List<IntentFilterData>
getIntentFilters()
Get the intent filters defined for the broadcast receiver.String
getPermission()
boolean
isEnabled()
boolean
isExported()
Returns whether this broadcast receiver is exported by checking the XML attribute.void
setPermission(String permission)
Methods inherited from class org.robolectric.manifest.PackageItemData
getClassName, getMetaData, getName
-
Constructor Details
-
Method Details
-
getActions
-
addAction
-
setPermission
-
getPermission
-
getIntentFilters
Get the intent filters defined for the broadcast receiver.- Returns:
- A list of intent filters.
-
getAllAttributes
Get the map for all attributes defined for the broadcast receiver.- Returns:
- map of attributes names to values from the manifest.
-
isExported
public boolean isExported()Returns whether this broadcast receiver is exported by checking the XML attribute.- Returns:
- true if the broadcast receiver is exported
-
isEnabled
public boolean isEnabled()
-