hasMimeTypeWithPrefix

static boolean hasMimeTypeWithPrefix(@NonNull() Intent intent, @NonNull() Context context, @NonNull() String prefix)

Check whether the Intent has a mime-type starting the provided prefix.

Return

true, if the Intent has a mime-type starting with the prefix or false

Parameters

intent

an Intent

context

Android context

prefix

mime-type prefix

Throws

if the Intent contains no Uri

static boolean hasMimeTypeWithPrefix(@NonNull() Uri uri, @NonNull() Context context, @NonNull() String prefix)