Class BroadcastReceiverData

java.lang.Object
org.robolectric.manifest.PackageItemData
org.robolectric.manifest.BroadcastReceiverData

public class BroadcastReceiverData extends PackageItemData
  • Constructor Details

  • Method Details

    • getActions

      public List<String> getActions()
    • addAction

      public void addAction(String action)
    • setPermission

      public void setPermission(String permission)
    • getPermission

      public String getPermission()
    • getIntentFilters

      public List<IntentFilterData> getIntentFilters()
      Get the intent filters defined for the broadcast receiver.
      Returns:
      A list of intent filters.
    • getAllAttributes

      public Map<String,String> 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()