-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
1 changed file
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |