One Logo Pool Ball
HomeKit · IOS API REFERENCE

HMTrigger

class · iOS 8.0+ · SDK 27.1

class HMTrigger

Members (9)

method · iOS 8.0+

addActionSet

TypeScript
addActionSet(actionSet: HMActionSet, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func addActionSet(_ actionSet: HMActionSet) async throws
method · iOS 8.0+

enable

TypeScript
enable(enable: boolean, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func enable(_ enable: Bool) async throws
method · iOS 8.0+

removeActionSet

TypeScript
removeActionSet(actionSet: HMActionSet, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func removeActionSet(_ actionSet: HMActionSet) async throws
method · iOS 8.0+

updateName

TypeScript
updateName(name: string, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func updateName(_ name: String) async throws
get · iOS 8.0+

actionSets

TypeScript
get actionSets(): Array<HMActionSet>
Swift declaration
var actionSets: [HMActionSet] { get }
get · iOS 8.0+

isEnabled

TypeScript
get isEnabled(): boolean
Swift declaration
var isEnabled: Bool { get }
get · iOS 8.0+ · Deprecated in iOS 17.0

lastFireDate

TypeScript
get lastFireDate(): (globalThis.Date) | null
Swift declaration
var lastFireDate: Date? { get }
get · iOS 8.0+

name

TypeScript
get name(): string
Swift declaration
var name: String { get }
get · iOS 9.0+

uniqueIdentifier

TypeScript
get uniqueIdentifier(): string
Swift declaration
var uniqueIdentifier: UUID { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HMTrigger.init()

inherited init: clang: 'init' is unavailable

All HomeKit types →