|
| 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 |
| 62 | + ```Java |
| 63 | + openCalculator() |
| 64 | + ``` |
| 65 | + Example |
| 66 | + ```Java |
| 67 | + CalculatorIntents.from(this).openCalculator().show(); |
| 68 | + ``` |
| 69 | +* ### CalendarIntents |
| 70 | + ```Java |
| 71 | + openCalendar() |
| 72 | + createEvent(String title, String description) |
| 73 | + ``` |
| 74 | + Example |
| 75 | + ```Java |
| 76 | + CalendarIntents.from(this).openCalendar().show(); |
| 77 | + ``` |
| 78 | +* ### CameraIntents |
| 79 | +* ### ContactIntents |
| 80 | + ```Java |
| 81 | + openContacts() |
| 82 | + viewContact(String name) |
| 83 | + editContact(String name) |
| 84 | + editContact(String name, String newEmail) |
| 85 | + insertContact(String name, String phone, String email, String company, String job, String notes) |
| 86 | + pickContact() |
| 87 | + ``` |
| 88 | + Example |
| 89 | + ```Java |
| 90 | + ContactIntents.from(this).openContacts().show(); |
| 91 | + ContactIntents.from(this).viewContact("Ahmad").show(); |
| 92 | + ContactIntents.from(this).insertContact("Emiley", "0913234235", "", "", "", "").show(); |
| 93 | + ContactIntents.from(this).editContact("Ahmad").show(); |
| 94 | + ``` |
| 95 | +* ### EmailIntents |
| 96 | +* ### EventIntents |
| 97 | +* ### FileIntents |
| 98 | +* ### GalleryIntents |
| 99 | +* ### GeoIntents |
| 100 | +* ### MarketIntents |
| 101 | +* ### MediaIntents |
| 102 | +* ### MessagingIntents |
| 103 | +* ### MusicIntents |
| 104 | +* ### NoteIntents |
| 105 | +* ### PhoneIntents |
| 106 | +* ### SearchIntents |
| 107 | +* ### SettingIntents |
| 108 | +* ### ShareIntents |
| 109 | +* ### TextIntents |
| 110 | +* ### TimerIntents |
0 commit comments