|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.ignition.support.IgnitedIntents
public class IgnitedIntents
Field Summary | |
---|---|
static String |
MIME_TYPE_EMAIL
|
static String |
MIME_TYPE_TEXT
|
Constructor Summary | |
---|---|
IgnitedIntents()
|
Method Summary | |
---|---|
static boolean |
isIntentAvailable(android.content.Context context,
android.content.Intent intent)
Checks whether there are applications installed which are able to handle the given intent. |
static boolean |
isIntentAvailable(android.content.Context context,
String action,
String mimeType)
Checks whether there are applications installed which are able to handle the given action/type. |
static boolean |
isIntentAvailable(android.content.Context context,
String action,
android.net.Uri uri,
String mimeType)
Checks whether there are applications installed which are able to handle the given action/data. |
static android.content.Intent |
newCallNumberIntent(String phoneNumber)
Creates an intent that will immediately dispatch a call to the given number. |
static android.content.Intent |
newDialNumberIntent(String phoneNumber)
Creates an intent that will open the phone app and enter the given number. |
static android.content.Intent |
newEmailIntent(android.content.Context context,
String address,
String subject,
String body)
|
static android.content.Intent |
newMapsIntent(String address,
String placeTitle)
|
static android.content.Intent |
newSelectPictureIntent()
Creates an intent which when fired, will launch the phone's picture gallery to select a picture from it. |
static android.content.Intent |
newShareIntent(android.content.Context context,
String subject,
String message,
String chooserDialogTitle)
|
static android.content.Intent |
newTakePictureIntent(File tempFile)
Creates an intent which when fired, will launch the camera to take a picture that's saved to a temporary file so you can use it directly without going through the gallery. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MIME_TYPE_EMAIL
public static final String MIME_TYPE_TEXT
Constructor Detail |
---|
public IgnitedIntents()
Method Detail |
---|
public static boolean isIntentAvailable(android.content.Context context, String action, android.net.Uri uri, String mimeType)
context
- the current contextaction
- the action to checkuri
- that data URI to check (may be null)mimeType
- the MIME type of the content (may be null)
public static boolean isIntentAvailable(android.content.Context context, String action, String mimeType)
context
- the current contextaction
- the action to checkmimeType
- the MIME type of the content (may be null)
public static boolean isIntentAvailable(android.content.Context context, android.content.Intent intent)
context
- the current contextintent
- the intent to check
public static android.content.Intent newEmailIntent(android.content.Context context, String address, String subject, String body)
public static android.content.Intent newShareIntent(android.content.Context context, String subject, String message, String chooserDialogTitle)
public static android.content.Intent newMapsIntent(String address, String placeTitle)
public static android.content.Intent newTakePictureIntent(File tempFile)
tempFile
- the file that should be used to temporarily store the picture
public static android.content.Intent newSelectPictureIntent()
public static android.content.Intent newDialNumberIntent(String phoneNumber)
newCallNumberIntent(String)
, this does not actually dispatch the call, so it gives
the user a chance to review and edit the number.
phoneNumber
- the number to dial
public static android.content.Intent newCallNumberIntent(String phoneNumber)
newDialNumberIntent(String)
, this intent requires the
Manifest.permission.CALL_PHONE
permission to be set.
phoneNumber
- the number to call
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |