controls

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

Package controls provides Go bindings for android.service.controls.

Index

Constants

View Source
const (
	TypeAcHeater                 = consts.TypeAcHeater
	TypeAcUnit                   = consts.TypeAcUnit
	TypeAirFreshener             = consts.TypeAirFreshener
	TypeAirPurifier              = consts.TypeAirPurifier
	TypeAwning                   = consts.TypeAwning
	TypeBlinds                   = consts.TypeBlinds
	TypeCamera                   = consts.TypeCamera
	TypeCloset                   = consts.TypeCloset
	TypeCoffeeMaker              = consts.TypeCoffeeMaker
	TypeCurtain                  = consts.TypeCurtain
	TypeDehumidifier             = consts.TypeDehumidifier
	TypeDishwasher               = consts.TypeDishwasher
	TypeDisplay                  = consts.TypeDisplay
	TypeDoor                     = consts.TypeDoor
	TypeDoorbell                 = consts.TypeDoorbell
	TypeDrawer                   = consts.TypeDrawer
	TypeDryer                    = consts.TypeDryer
	TypeFan                      = consts.TypeFan
	TypeGarage                   = consts.TypeGarage
	TypeGate                     = consts.TypeGate
	TypeGenericArmDisarm         = consts.TypeGenericArmDisarm
	TypeGenericLockUnlock        = consts.TypeGenericLockUnlock
	TypeGenericOnOff             = consts.TypeGenericOnOff
	TypeGenericOpenClose         = consts.TypeGenericOpenClose
	TypeGenericStartStop         = consts.TypeGenericStartStop
	TypeGenericTempSetting       = consts.TypeGenericTempSetting
	TypeGenericViewstream        = consts.TypeGenericViewstream
	TypeHeater                   = consts.TypeHeater
	TypeHood                     = consts.TypeHood
	TypeHumidifier               = consts.TypeHumidifier
	TypeKettle                   = consts.TypeKettle
	TypeLight                    = consts.TypeLight
	TypeLock                     = consts.TypeLock
	TypeMicrowave                = consts.TypeMicrowave
	TypeMop                      = consts.TypeMop
	TypeMower                    = consts.TypeMower
	TypeMulticooker              = consts.TypeMulticooker
	TypeOutlet                   = consts.TypeOutlet
	TypePergola                  = consts.TypePergola
	TypeRadiator                 = consts.TypeRadiator
	TypeRefrigerator             = consts.TypeRefrigerator
	TypeRemoteControl            = consts.TypeRemoteControl
	TypeRoutine                  = consts.TypeRoutine
	TypeSecuritySystem           = consts.TypeSecuritySystem
	TypeSetTop                   = consts.TypeSetTop
	TypeShower                   = consts.TypeShower
	TypeShutter                  = consts.TypeShutter
	TypeSprinkler                = consts.TypeSprinkler
	TypeStandmixer               = consts.TypeStandmixer
	TypeStyler                   = consts.TypeStyler
	TypeSwitch                   = consts.TypeSwitch
	TypeThermostat               = consts.TypeThermostat
	TypeTv                       = consts.TypeTv
	TypeUnknown                  = consts.TypeUnknown
	TypeVacuum                   = consts.TypeVacuum
	TypeValve                    = consts.TypeValve
	TypeWasher                   = consts.TypeWasher
	TypeWaterHeater              = consts.TypeWaterHeater
	TypeWindow                   = consts.TypeWindow
	Creator                      = consts.Creator
	StatusDisabled               = consts.StatusDisabled
	StatusError                  = consts.StatusError
	StatusNotFound               = consts.StatusNotFound
	StatusOk                     = consts.StatusOk
	StatusUnknown                = consts.StatusUnknown
	ControlsSurfaceActivityPanel = consts.ControlsSurfaceActivityPanel
	ControlsSurfaceDream         = consts.ControlsSurfaceDream
)
View Source
const (
	ExtraControlsSurface                = consts.ExtraControlsSurface
	ExtraLockscreenAllowTrivialControls = consts.ExtraLockscreenAllowTrivialControls
	MetaDataPanelActivity               = consts.MetaDataPanelActivity
	ServiceControls                     = consts.ServiceControls
	Tag                                 = consts.Tag
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type Control

type Control struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Control wraps android.service.controls.Control.

func (*Control) DescribeContents

func (m *Control) DescribeContents() (int32, error)

DescribeContents calls android.service.controls.Control.describeContents.

func (*Control) GetAppIntent

func (m *Control) GetAppIntent() (*jni.Object, error)

GetAppIntent calls android.service.controls.Control.getAppIntent.

func (*Control) GetControlId

func (m *Control) GetControlId() (string, error)

GetControlId calls android.service.controls.Control.getControlId.

func (*Control) GetControlTemplate

func (m *Control) GetControlTemplate() (*jni.Object, error)

GetControlTemplate calls android.service.controls.Control.getControlTemplate.

func (*Control) GetCustomColor

func (m *Control) GetCustomColor() (*jni.Object, error)

GetCustomColor calls android.service.controls.Control.getCustomColor.

func (*Control) GetCustomIcon

func (m *Control) GetCustomIcon() (*jni.Object, error)

GetCustomIcon calls android.service.controls.Control.getCustomIcon.

func (*Control) GetDeviceType

func (m *Control) GetDeviceType() (int32, error)

GetDeviceType calls android.service.controls.Control.getDeviceType.

func (*Control) GetStatus

func (m *Control) GetStatus() (int32, error)

GetStatus calls android.service.controls.Control.getStatus.

func (*Control) GetStatusText

func (m *Control) GetStatusText() (*jni.Object, error)

GetStatusText calls android.service.controls.Control.getStatusText.

func (*Control) GetStructure

func (m *Control) GetStructure() (*jni.Object, error)

GetStructure calls android.service.controls.Control.getStructure.

func (*Control) GetSubtitle

func (m *Control) GetSubtitle() (*jni.Object, error)

GetSubtitle calls android.service.controls.Control.getSubtitle.

func (*Control) GetTitle

func (m *Control) GetTitle() (*jni.Object, error)

GetTitle calls android.service.controls.Control.getTitle.

func (*Control) GetZone

func (m *Control) GetZone() (*jni.Object, error)

GetZone calls android.service.controls.Control.getZone.

func (*Control) IsAuthRequired

func (m *Control) IsAuthRequired() (bool, error)

IsAuthRequired calls android.service.controls.Control.isAuthRequired.

func (*Control) WriteToParcel

func (m *Control) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.service.controls.Control.writeToParcel.

type ControlStatefulBuilder

type ControlStatefulBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ControlStatefulBuilder wraps android.service.controls.Control$StatefulBuilder.

func (*ControlStatefulBuilder) Build

func (m *ControlStatefulBuilder) Build() (*jni.Object, error)

Build calls android.service.controls.Control$StatefulBuilder.build.

func (*ControlStatefulBuilder) SetAppIntent

func (m *ControlStatefulBuilder) SetAppIntent(arg0 *jni.Object) (*jni.Object, error)

SetAppIntent calls android.service.controls.Control$StatefulBuilder.setAppIntent.

func (*ControlStatefulBuilder) SetAuthRequired

func (m *ControlStatefulBuilder) SetAuthRequired(arg0 bool) (*jni.Object, error)

SetAuthRequired calls android.service.controls.Control$StatefulBuilder.setAuthRequired.

func (*ControlStatefulBuilder) SetControlId

func (m *ControlStatefulBuilder) SetControlId(arg0 string) (*jni.Object, error)

SetControlId calls android.service.controls.Control$StatefulBuilder.setControlId.

func (*ControlStatefulBuilder) SetControlTemplate

func (m *ControlStatefulBuilder) SetControlTemplate(arg0 *jni.Object) (*jni.Object, error)

SetControlTemplate calls android.service.controls.Control$StatefulBuilder.setControlTemplate.

func (*ControlStatefulBuilder) SetCustomColor

func (m *ControlStatefulBuilder) SetCustomColor(arg0 *jni.Object) (*jni.Object, error)

SetCustomColor calls android.service.controls.Control$StatefulBuilder.setCustomColor.

func (*ControlStatefulBuilder) SetCustomIcon

func (m *ControlStatefulBuilder) SetCustomIcon(arg0 *jni.Object) (*jni.Object, error)

SetCustomIcon calls android.service.controls.Control$StatefulBuilder.setCustomIcon.

func (*ControlStatefulBuilder) SetDeviceType

func (m *ControlStatefulBuilder) SetDeviceType(arg0 int32) (*jni.Object, error)

SetDeviceType calls android.service.controls.Control$StatefulBuilder.setDeviceType.

func (*ControlStatefulBuilder) SetStatus

func (m *ControlStatefulBuilder) SetStatus(arg0 int32) (*jni.Object, error)

SetStatus calls android.service.controls.Control$StatefulBuilder.setStatus.

func (*ControlStatefulBuilder) SetStatusText

func (m *ControlStatefulBuilder) SetStatusText(arg0 string) (*jni.Object, error)

SetStatusText calls android.service.controls.Control$StatefulBuilder.setStatusText.

func (*ControlStatefulBuilder) SetStructure

func (m *ControlStatefulBuilder) SetStructure(arg0 string) (*jni.Object, error)

SetStructure calls android.service.controls.Control$StatefulBuilder.setStructure.

func (*ControlStatefulBuilder) SetSubtitle

func (m *ControlStatefulBuilder) SetSubtitle(arg0 string) (*jni.Object, error)

SetSubtitle calls android.service.controls.Control$StatefulBuilder.setSubtitle.

func (*ControlStatefulBuilder) SetTitle

func (m *ControlStatefulBuilder) SetTitle(arg0 string) (*jni.Object, error)

SetTitle calls android.service.controls.Control$StatefulBuilder.setTitle.

func (*ControlStatefulBuilder) SetZone

func (m *ControlStatefulBuilder) SetZone(arg0 string) (*jni.Object, error)

SetZone calls android.service.controls.Control$StatefulBuilder.setZone.

type ControlStatelessBuilder

type ControlStatelessBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ControlStatelessBuilder wraps android.service.controls.Control$StatelessBuilder.

func (*ControlStatelessBuilder) Build

func (m *ControlStatelessBuilder) Build() (*jni.Object, error)

Build calls android.service.controls.Control$StatelessBuilder.build.

func (*ControlStatelessBuilder) SetAppIntent

func (m *ControlStatelessBuilder) SetAppIntent(arg0 *jni.Object) (*jni.Object, error)

SetAppIntent calls android.service.controls.Control$StatelessBuilder.setAppIntent.

func (*ControlStatelessBuilder) SetControlId

func (m *ControlStatelessBuilder) SetControlId(arg0 string) (*jni.Object, error)

SetControlId calls android.service.controls.Control$StatelessBuilder.setControlId.

func (*ControlStatelessBuilder) SetCustomColor

func (m *ControlStatelessBuilder) SetCustomColor(arg0 *jni.Object) (*jni.Object, error)

SetCustomColor calls android.service.controls.Control$StatelessBuilder.setCustomColor.

func (*ControlStatelessBuilder) SetCustomIcon

func (m *ControlStatelessBuilder) SetCustomIcon(arg0 *jni.Object) (*jni.Object, error)

SetCustomIcon calls android.service.controls.Control$StatelessBuilder.setCustomIcon.

func (*ControlStatelessBuilder) SetDeviceType

func (m *ControlStatelessBuilder) SetDeviceType(arg0 int32) (*jni.Object, error)

SetDeviceType calls android.service.controls.Control$StatelessBuilder.setDeviceType.

func (*ControlStatelessBuilder) SetStructure

func (m *ControlStatelessBuilder) SetStructure(arg0 string) (*jni.Object, error)

SetStructure calls android.service.controls.Control$StatelessBuilder.setStructure.

func (*ControlStatelessBuilder) SetSubtitle

func (m *ControlStatelessBuilder) SetSubtitle(arg0 string) (*jni.Object, error)

SetSubtitle calls android.service.controls.Control$StatelessBuilder.setSubtitle.

func (*ControlStatelessBuilder) SetTitle

func (m *ControlStatelessBuilder) SetTitle(arg0 string) (*jni.Object, error)

SetTitle calls android.service.controls.Control$StatelessBuilder.setTitle.

func (*ControlStatelessBuilder) SetZone

func (m *ControlStatelessBuilder) SetZone(arg0 string) (*jni.Object, error)

SetZone calls android.service.controls.Control$StatelessBuilder.setZone.

type DeviceTypes

type DeviceTypes struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DeviceTypes wraps android.service.controls.DeviceTypes.

func (*DeviceTypes) ValidDeviceType

func (m *DeviceTypes) ValidDeviceType(arg0 int32) (bool, error)

ValidDeviceType calls android.service.controls.DeviceTypes.validDeviceType.

type ProviderService

type ProviderService struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ProviderService wraps android.service.controls.ControlsProviderService.

func (*ProviderService) OnBind

func (m *ProviderService) OnBind(arg0 *jni.Object) (*jni.Object, error)

OnBind calls android.service.controls.ControlsProviderService.onBind.

func (*ProviderService) OnUnbind

func (m *ProviderService) OnUnbind(arg0 *jni.Object) (bool, error)

OnUnbind calls android.service.controls.ControlsProviderService.onUnbind.

func (*ProviderService) RequestAddControl

func (m *ProviderService) RequestAddControl(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
) error

RequestAddControl calls android.service.controls.ControlsProviderService.requestAddControl.

Directories

Path Synopsis
Package actions provides Go bindings for android.service.controls.actions.
Package actions provides Go bindings for android.service.controls.actions.
Package templates provides Go bindings for android.service.controls.templates.
Package templates provides Go bindings for android.service.controls.templates.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL