Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ma3udmohammadi committed May 21, 2019
1 parent 00dd4f7 commit c9fcde3
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ And add the library to your module **build.gradle**:

```Gradle
dependencies {
implementation 'com.github.ma3udmohammadi:Android-Intent-Library:0.2.2'
implementation 'com.github.ma3udmohammadi:Android-Intent-Library:1.0.0'
}
```

Expand Down Expand Up @@ -197,35 +197,30 @@ startActivity(SettingIntents.from(this).applicationSetting().build());
```
* ### MusicIntents
```Java

```
Example
```Java

```
* ### NoteIntents
```Java

openPlayMusic()
```
Example
```Java

MusicIntents.from(this).openPlayMusic().show();
```
* ### PhoneIntents
```Java

showDialNumber()
showDialNumber(String phoneNumber)
callNumber(String phoneNumber)
```
Example
```Java

PhoneIntents.from(this).showDialNumber().show();
```
* ### SearchIntents
```Java

searchInGooglePlay(String query)
searchWeb(String query)
```
Example
```Java

SearchIntents.from(this).searchInGooglePlay("Instagram").show();
```
* ### SettingIntents
```Java
Expand Down Expand Up @@ -287,25 +282,34 @@ startActivity(SettingIntents.from(this).applicationSetting().build());
```
* ### ShareIntents
```Java

shareText(String subject, String message)
shareText(String subject, String message, String chooserDialogTitle)
```
Example
```Java

ShareIntents.from(this).shareText("Subject example","message example").show();
```
* ### TextIntents
* ### TimerIntents
```Java

createTimer(String subject, int seconds, boolean skipUi)
```
Example
```Java

TimerIntents.from(this).createTimer("Run", 180, false).show();
```
* ### TimerIntents
* ### VoiceRecorderIntents
```Java
createTimer(String subject, int seconds, boolean skipUi)
openVoiceRecorder()
```
Example
```Java
TimerIntents.from(this).createTimer("Run", 180, false).show();
startActivityForResult(VoiceRecorderIntents.from(this).openVoiceRecorder().build(), RequestTag.RECORD_VOICE);
```

Note: some intents will return data, which should be handeled in onActivityResult, use .build and startActivityForResult for them.
Example
```Java
startActivityForResult(VoiceRecorderIntents.from(this).openVoiceRecorder().build(), RequestTag.RECORD_VOICE);
```

Note: Android-Intent-Library doesn't handle the returned data, you need to handle them your self in onActivityResult.

0 comments on commit c9fcde3

Please sign in to comment.