Documentation
¶
Overview ¶
Package role provides Go bindings for android.app.role.
Index ¶
Constants ¶
View Source
const ( RoleAssistant = consts.RoleAssistant RoleBrowser = consts.RoleBrowser RoleCallRedirection = consts.RoleCallRedirection RoleCallScreening = consts.RoleCallScreening RoleDialer = consts.RoleDialer RoleEmergency = consts.RoleEmergency RoleHome = consts.RoleHome RoleNotes = consts.RoleNotes RoleSms = consts.RoleSms RoleWallet = consts.RoleWallet )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶ added in v0.0.4
Manager wraps android.app.role.RoleManager.
func NewManager ¶ added in v0.0.4
NewManager obtains android.app.role.RoleManager from the Android system service manager.
func (*Manager) Close ¶ added in v0.0.4
func (m *Manager) Close()
Close releases the global reference to the underlying Java object. After Close, the Manager must not be used.
func (*Manager) CreateRequestRoleIntent ¶ added in v0.0.4
CreateRequestRoleIntent calls android.app.role.RoleManager.createRequestRoleIntent.
func (*Manager) IsRoleAvailable ¶ added in v0.0.4
IsRoleAvailable calls android.app.role.RoleManager.isRoleAvailable.
Click to show internal directories.
Click to hide internal directories.