Documentation
¶
Overview ¶
Package intentlauncher starts other screens on Android: its settings pages, and other apps' activities. iOS has nothing like it, so there Start fails with plugin.Unavailable.
nimbus native plugin add intent-launcher
r, err := intentlauncher.Start(ctx, intentlauncher.Intent{Action: intentlauncher.WifiSettings})
Index ¶
Constants ¶
View Source
const ( Settings = "android.settings.SETTINGS" // the Settings app WifiSettings = "android.settings.WIFI_SETTINGS" // Wi-Fi BluetoothSettings = "android.settings.BLUETOOTH_SETTINGS" // Bluetooth LocationSettings = "android.settings.LOCATION_SOURCE_SETTINGS" // location NotificationSettings = "android.settings.APP_NOTIFICATION_SETTINGS" // needs the extra android.provider.extra.APP_PACKAGE AppDetails = "android.settings.APPLICATION_DETAILS_SETTINGS" // needs Data: "package:your.app.id" )
Settings pages, for Intent.Action.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Intent ¶
type Intent struct {
Action string `json:"action,omitempty"` // what to do, such as WifiSettings
Data string `json:"data,omitempty"` // a URI for it to act on
Type string `json:"type,omitempty"` // a MIME type
Package string `json:"package,omitempty"` // keeps it to this app
Class string `json:"class,omitempty"` // this activity in Package
Extras map[string]string `json:"extras,omitempty"` // string extras
}
Intent is what to start.
Click to show internal directories.
Click to hide internal directories.