IntentHelper

public final class IntentHelper

Helper methods for android.content.Intent.

Functions

getMimeTypes
Link copied to clipboard
static List<StringgetMimeTypes(@NonNull() Intent intent, @NonNull() Context context)
Retrieves the available mime-types from the Intent.
getSourceAppName
Link copied to clipboard
static String getSourceAppName(@NonNull() Intent intent, @NonNull() Context context)
Retrieve the name of the app from which the Intent was received.
getUri
Link copied to clipboard
static Uri getUri(@NonNull() Intent intent)
Retrieves the Uri from the Intent.
getUris
Link copied to clipboard
static List<UrigetUris(@NonNull() Intent intent)
hasMimeType
Link copied to clipboard
static boolean hasMimeType(@NonNull() Intent intent, @NonNull() Context context, @NonNull() String mimeType)
Check whether the Intent has a specific mime-type.
hasMimeTypeWithPrefix
Link copied to clipboard
static boolean hasMimeTypeWithPrefix(@NonNull() Intent intent, @NonNull() Context context, @NonNull() String prefix)
Check whether the Intent has a mime-type starting the provided prefix.
static boolean hasMimeTypeWithPrefix(@NonNull() Uri uri, @NonNull() Context context, @NonNull() String prefix)
hasMultipleUris
Link copied to clipboard
static boolean hasMultipleUris(@NonNull() Intent intent)