Skip to main content

SpinBoxWidget

Class

Class in the Lens Scripting API.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

TypeScript only

Index

Extends

Constructors

Constructor

new SpinBoxWidget(min?, max?, step?): SpinBoxWidget

Parameters

ParameterType
min?number
max?number
step?number

Returns

SpinBoxWidget

Overrides

UIWidget.constructor

Properties

max?

protected optional max?: number


min?

protected optional min?: number


step?

protected optional step?: number

Methods

setMax()

setMax(max): SpinBoxWidget

Parameters

ParameterType
maxnumber

Returns

SpinBoxWidget


setMin()

setMin(min): SpinBoxWidget

Parameters

ParameterType
minnumber

Returns

SpinBoxWidget


setStep()

setStep(step): SpinBoxWidget

Parameters

ParameterType
stepnumber

Returns

SpinBoxWidget


toString()

toString(): string

Returns

string

Overrides

UIWidget.toString