@@ -15,7 +15,7 @@ And add the library to your module **build.gradle**:
1515
1616``` Gradle
1717dependencies {
18- implementation 'com.github.ma3udmohammadi:Android-Intent-Library:0.2.2 '
18+ implementation 'com.github.ma3udmohammadi:Android-Intent-Library:1.0.0 '
1919}
2020```
2121
@@ -197,35 +197,30 @@ startActivity(SettingIntents.from(this).applicationSetting().build());
197197 ```
198198* ### MusicIntents
199199 ``` Java
200-
201- ```
202- Example
203- ``` Java
204-
205- ```
206- * ### NoteIntents
207- ``` Java
208-
200+ openPlayMusic()
209201 ```
210202 Example
211203 ``` Java
212-
204+ MusicIntents . from( this ) . openPlayMusic() . show();
213205 ```
214206* ### PhoneIntents
215207 ``` Java
216-
208+ showDialNumber()
209+ showDialNumber(String phoneNumber)
210+ callNumber(String phoneNumber)
217211 ```
218212 Example
219213 ``` Java
220-
214+ PhoneIntents . from( this ) . showDialNumber() . show();
221215 ```
222216* ### SearchIntents
223217 ``` Java
224-
218+ searchInGooglePlay(String query)
219+ searchWeb(String query)
225220 ```
226221 Example
227222 ``` Java
228-
223+ SearchIntents . from( this ) . searchInGooglePlay( " Instagram " ) . show();
229224 ```
230225* ### SettingIntents
231226 ``` Java
@@ -287,25 +282,34 @@ startActivity(SettingIntents.from(this).applicationSetting().build());
287282 ```
288283* ### ShareIntents
289284 ``` Java
290-
285+ shareText(String subject, String message)
286+ shareText(String subject, String message, String chooserDialogTitle)
291287 ```
292288 Example
293289 ``` Java
294-
290+ ShareIntents . from( this ) . shareText( " Subject example " , " message example " ) . show();
295291 ```
296- * ### TextIntents
292+ * ### TimerIntents
297293 ``` Java
298-
294+ createTimer( String subject, int seconds, boolean skipUi)
299295 ```
300296 Example
301297 ``` Java
302-
298+ TimerIntents . from( this ) . createTimer( " Run " , 180 , false ) . show();
303299 ```
304- * ### TimerIntents
300+ * ### VoiceRecorderIntents
305301 ``` Java
306- createTimer( String subject, int seconds, boolean skipUi )
302+ openVoiceRecorder( )
307303 ```
308304 Example
309305 ``` Java
310- TimerIntents . from(this ). createTimer( " Run " , 180 , false ) . show( );
306+ startActivityForResult( VoiceRecorderIntents . from(this ). openVoiceRecorder() . build(), RequestTag . RECORD_VOICE );
311307 ```
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