Skip to content

Commit cd4e273

Browse files
Create Readme.md
1 parent 16a2760 commit cd4e273

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

README.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Android-Intent-Library
2+
3+
## How to include
4+
Add the repository to your project **build.gradle**:
5+
6+
```Gradle
7+
allprojects {
8+
repositories {
9+
maven { url "https://jitpack.io" }
10+
}
11+
}
12+
```
13+
14+
And add the library to your module **build.gradle**:
15+
16+
```Gradle
17+
dependencies {
18+
implementation 'com.github.ma3udmohammadi:Android-Intent-Library:0.2.1'
19+
}
20+
```
21+
22+
## Usage
23+
### Showing the intent immediately
24+
25+
26+
```Java
27+
SettingIntents.from(this).setting().show();
28+
SettingIntents.from(this).applicationSetting().show();
29+
```
30+
31+
### Build the intent and show it your self
32+
33+
```Java
34+
startActivity(SettingIntents.from(this).setting().build());
35+
startActivity(SettingIntents.from(this).applicationSetting().build());
36+
```
37+
38+
## List of Intents
39+
* ### AlarmIntents
40+
```Java
41+
showAlarms()
42+
createAlarm(String message, int hour, int minutes, boolean skipUi)
43+
createAlarm(String message, int hour, int minutes, boolean vibrate, boolean skipUi)
44+
createAlarm(String message, int hour, int minutes, boolean vibrate, boolean isPm, boolean skipUi)
45+
```
46+
Example
47+
```Java
48+
AlarmIntents.from(this).showAlarms().show();
49+
```
50+
* ### BrowserIntents
51+
```Java
52+
openBrowser()
53+
openLink(String url)
54+
openLink(Uri uri)
55+
openGoogle()
56+
```
57+
Example
58+
```Java
59+
BrowserIntents.from(this).openBrowser().show();
60+
```
61+
* ### CalculatorIntents(TODO)
62+
```Java
63+
openCalculator()
64+
```
65+
Example
66+
```Java
67+
CalculatorIntents.from(this).openCalculator().show();
68+
```
69+
* ### CalendarIntents
70+
* ### CameraIntents
71+
* ### ContactIntents
72+
* ### EmailIntents
73+
* ### EventIntents
74+
* ### FileIntents
75+
* ### GalleryIntents
76+
* ### GeoIntents
77+
* ### MarketIntents
78+
* ### MediaIntents
79+
* ### MessagingIntents
80+
* ### MusicIntents
81+
* ### NoteIntents
82+
* ### PhoneIntents
83+
* ### SearchIntents
84+
* ### SettingIntents
85+
* ### ShareIntents
86+
* ### TextIntents
87+
* ### TimerIntents

0 commit comments

Comments
 (0)