samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/VideoActivityWithDetailedCard.java
public static boolean supportsPictureInPicture(Context context) {
        return Build.VERSION.SDK_INT >= 24
                && context.getPackageManager().hasSystemFeature(
                        PackageManager.FEATURE_PICTURE_IN_PICTURE);
    }
/**
     * Helper function to determine if picture in picture mode is supported or not
     * @param context current context
     * @return if Picture in Picture mode is supported or not
     */
Helper function to determine if picture in picture mode is supported or not
@param context current context
@return if Picture in Picture mode is supported or not
Helper function to determine if picture in picture mode is supported or not @param context current context @return if Picture in Picture mode is supported or not
public static boolean supportsPictureInPicture(Context context) {
        return Build.VERSION.SDK_INT >= 24
                && context.getPackageManager().hasSystemFeature(
                        PackageManager.FEATURE_PICTURE_IN_PICTURE);
    }
public static boolean supportsPictureInPicture ( Context context ) { return Build . VERSION . SDK_INT >= 24 && context . getPackageManager ( ) . hasSystemFeature ( PackageManager . FEATURE_PICTURE_IN_PICTURE ) ; }
Helper function to determine if picture in picture mode is supported or not
 @param context current context
 @return if Picture in Picture mode is supported or not
Helper function to determine if picture in picture mode is supported or not @param context current context @return if Picture in Picture mode is supported or not