Enables all the notifications the type of which starts with the specified prefix
to be sent to the listener.
If the specified prefix is already in the list of enabled notification types,
this method has no effect.
Example:
// Enables all notifications the type of which starts with "my_example" to be sent.
myFilter.enableType("my_example");
// Enables all notifications the type of which is "my_example.my_type" to be sent.
myFilter.enableType("my_example.my_type");
Note that:
myFilter.enableType("my_example.*");
will no match any notification type.
Parameters:
-
prefix - The prefix.
Throws:
-
java.lang.IllegalArgumentException - The prefix parameter is null.