Options
All
  • Public
  • Public/Protected
  • All
Menu

Structured description of Message values to be matched. A MessageFilter can match against actions and categories in a Message.

api-version

1

user

Hierarchy

  • MessageFilter

Index

Constructors

  • new MessageFilter(args: { action?: string; category?: string; componentId?: string; packageName?: string }): MessageFilter
  • Parameters

    • args: { action?: string; category?: string; componentId?: string; packageName?: string }
      • Optional action?: string
      • Optional category?: string
      • Optional componentId?: string
      • Optional packageName?: string

    Returns MessageFilter

Properties

action?: string

The action to match, such as Message.ACTION_MAIN.

api-version

1

user
category?: string

The category to match, such as Message.CATEGORY_SCREEN.

api-version

1

user
componentId?: string

The component id to match.

api-version

1

user
packageName?: string

The packageName to match.

api-version

1

user

Methods

  • Whether this filter matches the given message.

    api-version

    1

    user

    Parameters

    • message: Message

      The message to compare with this filter.

    Returns boolean

    Return true if the message's action and category are matched with the action and category.

Generated using TypeDoc