@@ -15,7 +15,7 @@ And add the library to your module **build.gradle**:
15
15
16
16
``` Gradle
17
17
dependencies {
18
- implementation 'com.github.ma3udmohammadi:Android-Intent-Library:0.2.2 '
18
+ implementation 'com.github.ma3udmohammadi:Android-Intent-Library:1.0.0 '
19
19
}
20
20
```
21
21
@@ -197,35 +197,30 @@ startActivity(SettingIntents.from(this).applicationSetting().build());
197
197
```
198
198
* ### MusicIntents
199
199
``` Java
200
-
201
- ```
202
- Example
203
- ``` Java
204
-
205
- ```
206
- * ### NoteIntents
207
- ``` Java
208
-
200
+ openPlayMusic()
209
201
```
210
202
Example
211
203
``` Java
212
-
204
+ MusicIntents . from( this ) . openPlayMusic() . show();
213
205
```
214
206
* ### PhoneIntents
215
207
``` Java
216
-
208
+ showDialNumber()
209
+ showDialNumber(String phoneNumber)
210
+ callNumber(String phoneNumber)
217
211
```
218
212
Example
219
213
``` Java
220
-
214
+ PhoneIntents . from( this ) . showDialNumber() . show();
221
215
```
222
216
* ### SearchIntents
223
217
``` Java
224
-
218
+ searchInGooglePlay(String query)
219
+ searchWeb(String query)
225
220
```
226
221
Example
227
222
``` Java
228
-
223
+ SearchIntents . from( this ) . searchInGooglePlay( " Instagram " ) . show();
229
224
```
230
225
* ### SettingIntents
231
226
``` Java
@@ -287,25 +282,34 @@ startActivity(SettingIntents.from(this).applicationSetting().build());
287
282
```
288
283
* ### ShareIntents
289
284
``` Java
290
-
285
+ shareText(String subject, String message)
286
+ shareText(String subject, String message, String chooserDialogTitle)
291
287
```
292
288
Example
293
289
``` Java
294
-
290
+ ShareIntents . from( this ) . shareText( " Subject example " , " message example " ) . show();
295
291
```
296
- * ### TextIntents
292
+ * ### TimerIntents
297
293
``` Java
298
-
294
+ createTimer( String subject, int seconds, boolean skipUi)
299
295
```
300
296
Example
301
297
``` Java
302
-
298
+ TimerIntents . from( this ) . createTimer( " Run " , 180 , false ) . show();
303
299
```
304
- * ### TimerIntents
300
+ * ### VoiceRecorderIntents
305
301
``` Java
306
- createTimer( String subject, int seconds, boolean skipUi )
302
+ openVoiceRecorder( )
307
303
```
308
304
Example
309
305
``` Java
310
- TimerIntents . from(this ). createTimer( " Run " , 180 , false ) . show( );
306
+ startActivityForResult( VoiceRecorderIntents . from(this ). openVoiceRecorder() . build(), RequestTag . RECORD_VOICE );
311
307
```
308
+
309
+ Note: some intents will return data, which should be handeled in onActivityResult, use .build and startActivityForResult for them.
310
+ Example
311
+ ``` Java
312
+ startActivityForResult(VoiceRecorderIntents . from(this ). openVoiceRecorder(). build(), RequestTag . RECORD_VOICE );
313
+ ```
314
+
315
+ Note: Android-Intent-Library doesn't handle the returned data, you need to handle them your self in onActivityResult.
0 commit comments