isConnected method

Future<bool> isConnected()

Enhanced connection status check

Implementation

Future<bool> isConnected() async {
  try {
    final GoogleSignIn? googleSignIn = _googleSignIn;
    if (googleSignIn == null) return false;

    final GoogleSignInAccount? currentUser = await googleSignIn.signInSilently();
    return currentUser != null;
  } catch (e) {
    OnairosDebugHelper.log('Error checking enhanced YouTube connection status: $e');
    return false;
  }
}