|
31 | 31 | * </p> |
32 | 32 | * <p> |
33 | 33 | * 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. |
39 | 34 | * </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> |
40 | 45 | * |
41 | 46 | * <blockquote> |
42 | 47 | * |
|
79 | 84 | */ |
80 | 85 | String value() default ""; |
81 | 86 |
|
| 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 {}; |
82 | 94 |
|
83 | 95 | /** |
84 | 96 | * <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. |
90 | 103 | * </p> |
91 | 104 | */ |
92 | 105 | @Retention(RetentionPolicy.CLASS) |
|
0 commit comments