MethodChannelStopouBlocker class

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canAccessRestrictedSettings() Future<bool>
Verifica se pode acessar configurações restritas (Android 13+)
override
debugGetCurrentRoute() Future<Map<String, dynamic>>
Debug - mostra configuração atual completa (rota, keywords, status)
override
events() Stream<Map<String, dynamic>>
override
getActiveKeywords() Future<List<String>>
Verifica quais keywords estão ativas no momento (debug)
override
getInstalledApps() Future<List<Map<String, dynamic>>>
📱 Obtém lista de aplicativos instalados no dispositivo
override
getRestrictedSettingsMessage() Future<String>
Retorna mensagem explicativa sobre configurações restritas
override
getStatus() Future<Map<String, dynamic>>
override
hasAccessibilityPermission() Future<bool>
override
hasNotificationPermission() Future<bool>
override
hasVpnPermission() Future<bool>
override
isKeywordBlockerRunning() Future<bool>
override
isVpnRunning() Future<bool>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAccessibilitySettings() Future<bool>
override
openRestrictedSettings() Future<bool>
Abre configurações restritas do app (Android 13+)
override
requestAccessibilityPermission() Future<bool>
override
requestNotificationPermission() Future<bool>
override
requestPermission() Future<bool>
override
setDebugMode(bool enabled) Future<bool>
🧪 Configura debug mode para desabilitar throttling durante testes
override
start({List<String> blocklist = const ['.bet.br'], bool logAttempts = true, List<String> dnsServers = const [], List<String> keywords = const [], List<BlockStrategies> strategies = const [BlockStrategies.vpn]}) Future<void>
override
startAppBlocker(List<String> packages) Future<bool>
🚫 Inicia bloqueio de aplicativos específicos
override
startKeywordBlocker(List<String> keywords, {String? redirectRoute}) Future<List<String>>
override
stop() Future<void>
override
stopAppBlocker() Future<bool>
✅ Para bloqueio de aplicativos
override
stopKeywordBlocker() Future<void>
override
toString() String
A string representation of this object.
inherited
updateAllowlist(List<String> hosts) Future<void>
override
updateBlocklist(List<String> hosts) Future<void>
override
updateDnsServers(List<String> servers) Future<void>
override

Operators

operator ==(Object other) bool
The equality operator.
inherited