mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-24 12:15:12 +00:00
Add CastMediaControlIntent::isCategoryForCast
This commit is contained in:
parent
ccb9ae4ea4
commit
a5f41cd3e5
1 changed files with 12 additions and 0 deletions
|
@ -88,6 +88,18 @@ public final class CastMediaControlIntent {
|
||||||
return CATEGORY_CAST + "/" + applicationId;
|
return CATEGORY_CAST + "/" + applicationId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the given category is a custom control category for cast devices, specific to an application ID.
|
||||||
|
*
|
||||||
|
* @param applicationId The application ID of the receiver application.
|
||||||
|
*/
|
||||||
|
public static boolean isCategoryForCast(String category) {
|
||||||
|
if (category == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return category.startsWith(CATEGORY_CAST + "/");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a custom control category for discovering Cast devices meeting both application ID and namespace
|
* Returns a custom control category for discovering Cast devices meeting both application ID and namespace
|
||||||
* restrictions. See {@link #categoryForCast(Collection)} and {@link #categoryForCast(String)} for more details.
|
* restrictions. See {@link #categoryForCast(Collection)} and {@link #categoryForCast(String)} for more details.
|
||||||
|
|
Loading…
Reference in a new issue