Skip to content

Commit cdf8c94

Browse files
committed
add dataSchemes to @ReceiverAction
1 parent 45c0413 commit cdf8c94

1 file changed

Lines changed: 23 additions & 10 deletions

File tree

  • AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/ReceiverAction.java‎

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,17 @@
3131
* </p>
3232
* <p>
3333
* The method annotated with {@link ReceiverAction} may have as parameters :
34-
* - A {@link android.content.Context} which will be the context given in {@code void onReceive(Context context, Intent intent)}
35-
* - A {@link android.content.Intent} which will be the intent given in {@code void onReceive(Context context, Intent intent)}
36-
* - Some any native, {@link android.os.Parcelable} or {@link java.io.Serializable} parameters
37-
* annotated with {@link ReceiverAction.Extra} which will be the extra put in the intent. The key of this extra is
38-
* the value of the annotation {@link ReceiverAction.Extra} if set or the name of the parameter.
3934
* </p>
35+
* <ul>
36+
* <li>A {@link android.content.Context} which will be the context given in
37+
* {@code void onReceive(Context context, Intent intent)}</li>
38+
* <li>A {@link android.content.Intent} which will be the intent given in
39+
* {@code void onReceive(Context context, Intent intent)}</li>
40+
* <li>Any native, {@link android.os.Parcelable} or {@link java.io.Serializable}
41+
* parameters annotated with {@link ReceiverAction.Extra} which will be the
42+
* extra put in the intent. The key of this extra is the value of the annotation
43+
* {@link ReceiverAction.Extra} if set or the name of the parameter.</li>
44+
* </ul>
4045
*
4146
* <blockquote>
4247
*
@@ -79,14 +84,22 @@
7984
*/
8085
String value() default "";
8186

87+
/**
88+
* Define a set of data schemes to filter the Intent. If this field isn't
89+
* all schemes are allowed
90+
*
91+
* @return the data schemes to filter
92+
*/
93+
String[] dataSchemes() default {};
8294

8395
/**
8496
* <p>
85-
* Should be used on any native, {@link android.os.Parcelable} or {@link java.io.Serializable} parameter of a method
86-
* annotated with {@link ReceiverAction} to inject the extra put in the intent parameter
87-
* of {@code void onReceive(Context context, Intent intent)}.
88-
* The key of this extra is the value of the annotation {@link ReceiverAction.Extra} if it is set
89-
* or the name of the parameter.
97+
* Should be used on any native, {@link android.os.Parcelable} or
98+
* {@link java.io.Serializable} parameter of a method annotated with
99+
* {@link ReceiverAction} to inject the extra put in the intent parameter of
100+
* {@code void onReceive(Context context, Intent intent)}. The key of this
101+
* extra is the value of the annotation {@link ReceiverAction.Extra} if it
102+
* is set or the name of the parameter.
90103
* </p>
91104
*/
92105
@Retention(RetentionPolicy.CLASS)

0 commit comments

Comments
 (0)