canUseFullScreenIntent static method

Future<bool> canUseFullScreenIntent()

Returns whether the app can send fullscreen intents (required for showing the Incoming call screen on the Lockscreen)

Implementation

static Future<bool> canUseFullScreenIntent() async {
  if (!Platform.isAndroid) return Future.value(true);

  return _methodChannel.invokeMethod("canUseFullScreenIntent").then((result) {
    if (result == null) {
      return false;
    }

    return result;
  });
}