hasMimeType

static boolean hasMimeType(@NonNull() Intent intent, @NonNull() Context context, @NonNull() String mimeType)

Check whether the Intent has a specific mime-type.

Return

{@code true}, if the Intent has the mime-type or {@code false}

Parameters

intent

an Intent

context

Android context

mimeType

required mime-type string

Throws

if the Intent contains no Uri