One Logo Pool Ball
Matter · IOS API REFERENCE

MTRCommandWithRequiredResponse

class · iOS 18.4+ · SDK 27.1

class MTRCommandWithRequiredResponse

Members (7)

init · iOS 18.4+

init

TypeScript
static init(path: MTRCommandPath, commandFields?: (Record<string, unknown>) | null, requiredResponse?: (NativeMap<_Foundation_NSNumber, Record<string, unknown>>) | null): MTRCommandWithRequiredResponse
Swift declaration
init(path: MTRCommandPath, commandFields: [String : Any]?, requiredResponse: [NSNumber : [String : Any]]?)
get · iOS 18.4+

commandFields

TypeScript
get commandFields(): (Record<string, unknown>) | null
Swift declaration
var commandFields: [String : Any]? { get set }
set · iOS 18.4+

commandFields

TypeScript
set commandFields(value: (Record<string, unknown>) | null)
Swift declaration
var commandFields: [String : Any]? { get set }
get · iOS 18.4+

path

TypeScript
get path(): MTRCommandPath
Swift declaration
var path: MTRCommandPath { get set }
set · iOS 18.4+

path

TypeScript
set path(value: MTRCommandPath)
Swift declaration
var path: MTRCommandPath { get set }
get · iOS 18.4+

requiredResponse

TypeScript
get requiredResponse(): (NativeMap<_Foundation_NSNumber, Record<string, unknown>>) | null
Swift declaration
var requiredResponse: [NSNumber : [String : Any]]? { get set }
set · iOS 18.4+

requiredResponse

TypeScript
set requiredResponse(value: (NativeMap<_Foundation_NSNumber, Record<string, unknown>>) | null)
Swift declaration
var requiredResponse: [NSNumber : [String : Any]]? { get set }

Skipped declarations

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

MTRCommandWithRequiredResponse.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All Matter types →