GetConnectivityTool

Reports the active network's transports via ConnectivityManager: is_connected, has_wifi, has_cellular, has_bluetooth. All false when there is no active network.

Reading network capabilities requires the normal (install-time) ACCESS_NETWORK_STATE permission, declared by this module's manifest and reported via DeviceTools.requiredPermissions.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val annotations: ToolAnnotations
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val parameters: List<ToolParameter>

Functions

Link copied to clipboard
open suspend override fun execute(params: Map<String, Any>): ToolResult