1{
2  "methods": {
3    "__constructor__(android.content.Context)": {
4      "isImplementation": true,
5      "modifiers": [
6        "protected"
7      ],
8      "params": [
9        "context"
10      ],
11      "returnType": "void",
12      "exceptions": [],
13      "name": "__constructor__(android.content.Context)"
14    },
15    "__constructor__(android.content.Context,android.os.Looper)": {
16      "isImplementation": true,
17      "modifiers": [
18        "protected"
19      ],
20      "params": [
21        "context",
22        "looper"
23      ],
24      "returnType": "void",
25      "exceptions": [],
26      "name": "__constructor__(android.content.Context,android.os.Looper)"
27    },
28    "cancel()": {
29      "isImplementation": true,
30      "modifiers": [
31        "protected"
32      ],
33      "params": [],
34      "returnType": "void",
35      "exceptions": [],
36      "name": "cancel()"
37    },
38    "getDuration()": {
39      "isImplementation": true,
40      "modifiers": [
41        "protected"
42      ],
43      "params": [],
44      "returnType": "int",
45      "exceptions": [],
46      "name": "getDuration()"
47    },
48    "getGravity()": {
49      "isImplementation": true,
50      "modifiers": [
51        "protected"
52      ],
53      "params": [],
54      "returnType": "int",
55      "exceptions": [],
56      "name": "getGravity()"
57    },
58    "getLatestToast()": {
59      "isImplementation": false,
60      "modifiers": [
61        "public",
62        "static"
63      ],
64      "params": [],
65      "returnType": "android.widget.Toast",
66      "exceptions": [],
67      "name": "getLatestToast()",
68      "documentation": "Returns the most recently shown {@code Toast}.\n\n@return the most recently shown {@code Toast}\n"
69    },
70    "getTextOfLatestToast()": {
71      "isImplementation": false,
72      "modifiers": [
73        "public",
74        "static"
75      ],
76      "params": [],
77      "returnType": "java.lang.String",
78      "exceptions": [],
79      "name": "getTextOfLatestToast()",
80      "documentation": "Returns the text of the most recently shown {@code Toast}.\n\n@return the text of the most recently shown {@code Toast}\n"
81    },
82    "getView()": {
83      "isImplementation": true,
84      "modifiers": [
85        "protected"
86      ],
87      "params": [],
88      "returnType": "android.view.View",
89      "exceptions": [],
90      "name": "getView()"
91    },
92    "getXOffset()": {
93      "isImplementation": true,
94      "modifiers": [
95        "protected"
96      ],
97      "params": [],
98      "returnType": "int",
99      "exceptions": [],
100      "name": "getXOffset()"
101    },
102    "getYOffset()": {
103      "isImplementation": true,
104      "modifiers": [
105        "protected"
106      ],
107      "params": [],
108      "returnType": "int",
109      "exceptions": [],
110      "name": "getYOffset()"
111    },
112    "isCancelled()": {
113      "isImplementation": false,
114      "modifiers": [
115        "public"
116      ],
117      "params": [],
118      "returnType": "boolean",
119      "exceptions": [],
120      "name": "isCancelled()"
121    },
122    "makeText(android.content.Context,int,int)": {
123      "isImplementation": true,
124      "modifiers": [
125        "protected",
126        "static"
127      ],
128      "params": [
129        "context",
130        "resId",
131        "duration"
132      ],
133      "returnType": "android.widget.Toast",
134      "exceptions": [],
135      "name": "makeText(android.content.Context,int,int)"
136    },
137    "makeText(android.content.Context,java.lang.CharSequence,int)": {
138      "isImplementation": true,
139      "modifiers": [
140        "protected",
141        "static"
142      ],
143      "params": [
144        "context",
145        "text",
146        "duration"
147      ],
148      "returnType": "android.widget.Toast",
149      "exceptions": [],
150      "name": "makeText(android.content.Context,java.lang.CharSequence,int)"
151    },
152    "reset()": {
153      "isImplementation": false,
154      "modifiers": [
155        "public",
156        "static"
157      ],
158      "params": [],
159      "returnType": "void",
160      "exceptions": [],
161      "name": "reset()",
162      "documentation": "Discards the recorded {@code Toast}s. Shown toasts are automatically cleared between\ntests. This method allows the user to discard recorded toasts during the test in order to make assertions clearer\ne.g:\n\n\u003cpre\u003e\n\n  // Show a single toast\n  myClass.showToast();\n\n  assertThat(ShadowToast.shownToastCount()).isEqualTo(1);\n  ShadowToast.reset();\n\n   // Show another toast\n  myClass.showToast();\n\n  assertThat(ShadowToast.shownToastCount()).isEqualTo(1);\n\n\u003c/pre\u003e\n"
163    },
164    "setDuration(int)": {
165      "isImplementation": true,
166      "modifiers": [
167        "protected"
168      ],
169      "params": [
170        "duration"
171      ],
172      "returnType": "void",
173      "exceptions": [],
174      "name": "setDuration(int)"
175    },
176    "setGravity(int,int,int)": {
177      "isImplementation": true,
178      "modifiers": [
179        "protected"
180      ],
181      "params": [
182        "gravity",
183        "xOffset",
184        "yOffset"
185      ],
186      "returnType": "void",
187      "exceptions": [],
188      "name": "setGravity(int,int,int)"
189    },
190    "setText(int)": {
191      "isImplementation": true,
192      "modifiers": [
193        "protected"
194      ],
195      "params": [
196        "resId"
197      ],
198      "returnType": "void",
199      "exceptions": [],
200      "name": "setText(int)"
201    },
202    "setText(java.lang.CharSequence)": {
203      "isImplementation": true,
204      "modifiers": [
205        "protected"
206      ],
207      "params": [
208        "text"
209      ],
210      "returnType": "void",
211      "exceptions": [],
212      "name": "setText(java.lang.CharSequence)"
213    },
214    "setView(android.view.View)": {
215      "isImplementation": true,
216      "modifiers": [
217        "protected"
218      ],
219      "params": [
220        "view"
221      ],
222      "returnType": "void",
223      "exceptions": [],
224      "name": "setView(android.view.View)"
225    },
226    "show()": {
227      "isImplementation": true,
228      "modifiers": [
229        "protected"
230      ],
231      "params": [],
232      "returnType": "void",
233      "exceptions": [],
234      "name": "show()"
235    },
236    "showedCustomToast(java.lang.CharSequence,int)": {
237      "isImplementation": false,
238      "modifiers": [
239        "public",
240        "static"
241      ],
242      "params": [
243        "message",
244        "layoutResourceIdToCheckForMessage"
245      ],
246      "returnType": "boolean",
247      "exceptions": [],
248      "name": "showedCustomToast(java.lang.CharSequence,int)",
249      "documentation": "Returns whether or not a particular custom {@code Toast} has been shown.\n\n@param message the message to search for\n@param layoutResourceIdToCheckForMessage\n               the id of the resource that contains the toast messages\n@return whether the {@code Toast} was requested\n"
250    },
251    "showedToast(java.lang.CharSequence)": {
252      "isImplementation": false,
253      "modifiers": [
254        "public",
255        "static"
256      ],
257      "params": [
258        "message"
259      ],
260      "returnType": "boolean",
261      "exceptions": [],
262      "name": "showedToast(java.lang.CharSequence)",
263      "documentation": "query method that returns whether or not a particular {@code Toast} has been shown.\n\n@param message the message to search for\n@return whether the {@code Toast} was requested\n"
264    },
265    "shownToastCount()": {
266      "isImplementation": false,
267      "modifiers": [
268        "public",
269        "static"
270      ],
271      "params": [],
272      "returnType": "int",
273      "exceptions": [],
274      "name": "shownToastCount()",
275      "documentation": "Returns the number of {@code Toast} requests that have been made during this test run\nor since {@link #reset()} has been called.\n\n@return the number of {@code Toast} requests that have been made during this test run\n        or since {@link #reset()} has been called.\n"
276    }
277  },
278  "imports": [
279    "android.content.Context",
280    "android.os.Looper",
281    "android.view.View",
282    "android.widget.TextView",
283    "android.widget.Toast",
284    "java.util.List",
285    "org.robolectric.RuntimeEnvironment",
286    "org.robolectric.annotation.Implementation",
287    "org.robolectric.annotation.Implements",
288    "org.robolectric.annotation.RealObject",
289    "org.robolectric.shadow.api.Shadow"
290  ],
291  "name": "org.robolectric.shadows.ShadowToast"
292}