Class/Object

atom.content.pm

IntentFilter

Related Docs: object IntentFilter | package pm

Permalink

final class IntentFilter extends AnyRef

Structured description of Intent values to be matched. An IntentFilter can match against actions, categories.

Filter Rules

A match is based on the following rules. Note that for an IntentFilter to match an Intent, two conditions must hold: the action and category must match. Action matches if any of the given values match the Intent action, or if no actions were specified in the filter. Categories match if all of the categories in the Intent match categories given in the filter. Note that unlike the action, an IntentFilter with no categories will only match an Intent that does not have any categories.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IntentFilter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IntentFilter()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addAction(action: String): Unit

    Permalink

    Add a new Intent action to match against.

    Add a new Intent action to match against. If any actions are included in the filter, then an Intent's action must be one of those values for it to match. If no actions are included, the Intent action is ignored.

    action

    name of the action to match, i.e. Intent.ActionMain

  5. def addCategory(category: String): Unit

    Permalink

    Add a new Intent category to match against.

    Add a new Intent category to match against. The semantics of categories is the opposite of actions -- an Intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent.

    category

    name of category to match, i.e. Intent.CategoryHome

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(o: Any): Boolean

    Permalink
    Definition Classes
    IntentFilter → AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def getActionsJaxb: Set[String]

    Permalink
    Annotations
    @XmlElement()
  12. def getCategoriesJaxb: Set[String]

    Permalink

    Category set that matched for corresponding activity.

    Category set that matched for corresponding activity.

    Annotations
    @XmlElement()
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    IntentFilter → AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def matches(intent: Intent): Boolean

    Permalink

    Test whether this filter matches the given intent.

    Test whether this filter matches the given intent.

    intent

    an intent that we match

    returns

    true if intent was found or if this filter is used for default activities (actions are empty)

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    IntentFilter → AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped