Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
kingdom2011 committed May 17, 2019
2 parents 0b31e67 + 0b75399 commit 7ca610e
Showing 1 changed file with 110 additions and 0 deletions.
110 changes: 110 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Android-Intent-Library

## How to include
Add the repository to your project **build.gradle**:

```Gradle
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
```

And add the library to your module **build.gradle**:

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

## Usage
### Showing the intent immediately


```Java
SettingIntents.from(this).setting().show();
SettingIntents.from(this).applicationSetting().show();
```

### Build the intent and show it your self

```Java
startActivity(SettingIntents.from(this).setting().build());
startActivity(SettingIntents.from(this).applicationSetting().build());
```

## List of Intents
* ### AlarmIntents
```Java
showAlarms()
createAlarm(String message, int hour, int minutes, boolean skipUi)
createAlarm(String message, int hour, int minutes, boolean vibrate, boolean skipUi)
createAlarm(String message, int hour, int minutes, boolean vibrate, boolean isPm, boolean skipUi)
```
Example
```Java
AlarmIntents.from(this).showAlarms().show();
```
* ### BrowserIntents
```Java
openBrowser()
openLink(String url)
openLink(Uri uri)
openGoogle()
```
Example
```Java
BrowserIntents.from(this).openBrowser().show();
```
* ### CalculatorIntents
```Java
openCalculator()
```
Example
```Java
CalculatorIntents.from(this).openCalculator().show();
```
* ### CalendarIntents
```Java
openCalendar()
createEvent(String title, String description)
```
Example
```Java
CalendarIntents.from(this).openCalendar().show();
```
* ### CameraIntents
* ### ContactIntents
```Java
openContacts()
viewContact(String name)
editContact(String name)
editContact(String name, String newEmail)
insertContact(String name, String phone, String email, String company, String job, String notes)
pickContact()
```
Example
```Java
ContactIntents.from(this).openContacts().show();
ContactIntents.from(this).viewContact("Ahmad").show();
ContactIntents.from(this).insertContact("Emiley", "0913234235", "", "", "", "").show();
ContactIntents.from(this).editContact("Ahmad").show();
```
* ### EmailIntents
* ### EventIntents
* ### FileIntents
* ### GalleryIntents
* ### GeoIntents
* ### MarketIntents
* ### MediaIntents
* ### MessagingIntents
* ### MusicIntents
* ### NoteIntents
* ### PhoneIntents
* ### SearchIntents
* ### SettingIntents
* ### ShareIntents
* ### TextIntents
* ### TimerIntents

0 comments on commit 7ca610e

Please sign in to comment.