You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4360e3f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/AfterExtras.java
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,25 @@
32
32
* There may be several methods annotated with @{@link AfterExtras} in the same
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/IgnoredWhenDetached.java
+30-5Lines changed: 30 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -21,17 +21,42 @@
21
21
importjava.lang.annotation.Target;
22
22
23
23
/**
24
-
* When used standalone in an {@link EFragment} or in conjunction with the {@link UiThread}
25
-
* or {@link Background} annotations, the annotated method will be wrapped in an 'if attached'
26
-
* block such that no code will be executed if the {@link EFragment} is no longer bound to
27
-
* its parent activity.
24
+
* When used standalone in an {@link EFragment} or in conjunction with the
25
+
* {@link UiThread} or {@link Background} annotations, the annotated method will
26
+
* be wrapped in an 'if attached' block such that no code will be executed if
27
+
* the {@link EFragment} is no longer bound to its parent activity.
28
28
* <p/>
29
29
* Should be used on method that must meet the following criteria
30
30
* <p/>
31
-
* 1) Can only be used in conjunction with classes annotated with {@link EFragment}
31
+
* 1) Can only be used in conjunction with classes annotated with
32
+
* {@link EFragment}
32
33
* <p/>
33
34
* 2) The annotated method MUST return void and MAY contain parameters.
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/NonConfigurationInstance.java
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,25 @@
42
42
* This caution doesn't apply to beans annotated with {@link Bean}, because
43
43
* AndroidAnnotations automatically takes care of rebinding their context.
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/RootContext.java
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,32 @@
31
31
* instance of the bean using a Service context, and you use {@link RootContext}
32
32
* on a field that extends Activity, this field will be null at runtime.
33
33
* </p>
34
+
* <blockquote>
35
+
*
36
+
* Example :
37
+
*
38
+
* <pre>
39
+
* @EBean
40
+
* public class MyClass {
41
+
*
42
+
* @RootContext
43
+
* Context context;
44
+
*
45
+
* // Only injected if the root context is an activity
46
+
* @RootContext
47
+
* Activity activity;
48
+
*
49
+
* // Only injected if the root context is a service
50
+
* @RootContext
51
+
* Service service;
52
+
*
53
+
* // Only injected if the root context is an instance of MyActivity
0 commit comments