This is the default server implementation of TimeFormatLocalizationBehavior.

Hierarchy

Constructors

Properties

[reference]: Datasource<StateType>
agent: Agent
cluster: never

The implemented cluster.

context: ActionContext
endpoint: Endpoint<Empty>
events: EventEmitter & Omit<ClusterEvents<TimeFormatLocalization.Cluster, typeof ClusterBehavior>, "hourFormat$Changing" | "hourFormat$Changed"> & {
    activeCalendarType$Changing: ClusterEvents.AttributeObservable<WritableAttribute<TimeFormatLocalization.CalendarType, any>>;
    hourFormat$Changing: ClusterEvents.AttributeObservable<WritableAttribute<TimeFormatLocalization.HourFormat, any>>;
    supportedCalendarTypes$Changing: ClusterEvents.AttributeObservable<FixedAttribute<TimeFormatLocalization.CalendarType[], any>>;
} & {} & {
    activeCalendarType$Changed: ClusterEvents.AttributeObservable<WritableAttribute<TimeFormatLocalization.CalendarType, any>>;
    hourFormat$Changed: ClusterEvents.AttributeObservable<WritableAttribute<TimeFormatLocalization.HourFormat, any>>;
    supportedCalendarTypes$Changed: ClusterEvents.AttributeObservable<FixedAttribute<TimeFormatLocalization.CalendarType[], any>>;
} & {} & {} & {}

Access the behavior's events.

features: TypeFromBitSchema<{
    calendarFormat: BitFlag;
}>

Supported features as a flag object.

Type declaration

  • ReadonlycalendarFormat: BitFlag

    CalendarFormat

    The Node can be configured to use different calendar formats when conveying values to a user.

session: SecureSession
state: Omit<ClusterState.Type<TimeFormatLocalization.Cluster, typeof ClusterBehavior>, "hourFormat"> & {
    activeCalendarType: TimeFormatLocalization.CalendarType;
    hourFormat: TimeFormatLocalization.HourFormat;
} & {} & {
    supportedCalendarTypes: TimeFormatLocalization.CalendarType[];
} & {}

Access the behavior's state.

Type declaration

  • ReadonlyactiveCalendarType: TimeFormatLocalization.CalendarType

    Indicates the calendar format that the Node is currently configured to use when conveying dates.

    If not UseActiveLocale, this value shall take priority over any unit implied through the ActiveLocale attribute.

    If UseActiveLocale, any unit implied through the ActiveLocale attribute is used as the calendar type, and if ActiveLocale is not present, the calendar type is unknown.

    MatterSpecification.v13.Core § 11.4.6.2

  • ReadonlyhourFormat: TimeFormatLocalization.HourFormat

    Indicates the format that the Node is currently configured to use when conveying the hour unit of time.

    If not UseActiveLocale, this value shall take priority over any unit implied through the ActiveLocale attribute.

    If UseActiveLocale, any unit implied through the ActiveLocale attribute is used as the hour format, and if ActiveLocale is not present, the hour format is unknown.

    MatterSpecification.v13.Core § 11.4.6.1

Type declaration

  • ReadonlysupportedCalendarTypes: TimeFormatLocalization.CalendarType[]

    Indicates a list of CalendarTypeEnum values that are supported by the Node. The list shall NOT contain any duplicate entries. The ordering of items within the list SHOULD NOT express any meaning. The maximum length of the SupportedCalendarTypes list shall be equivalent to the number of enumerations within CalendarTypeEnum.

    MatterSpecification.v13.Core § 11.4.6.3

cluster: WithFeatures<TimeFormatLocalization.Cluster, readonly ["CalendarFormat"]>

Base cluster state include all attribute values but may be extended by subclasses.

defaults: ClusterState.Type<WithFeatures<TimeFormatLocalization.Cluster, readonly ["CalendarFormat"]>, Type<TimeFormatLocalization.Cluster, typeof ClusterBehavior, {
    components: never[];
}>>
dependencies?: Iterable<Type, any, any>
early: boolean
Events: ClusterEvents.Type<WithFeatures<TimeFormatLocalization.Cluster, readonly ["CalendarFormat"]>, Type<TimeFormatLocalization.Cluster, typeof ClusterBehavior, {
    components: never[];
}>>
id

The behavior ID for ClusterBehaviors is the name of the cluster.

Interface: {
    components: never[];
}
Internal: (new () => {})
name: string
schema?: Schema
State: (new () => ClusterState.Type<WithFeatures<TimeFormatLocalization.Cluster, readonly ["CalendarFormat"]>, Type<TimeFormatLocalization.Cluster, typeof ClusterBehavior, {
    components: never[];
}>>)
supervisor: RootSupervisor
supports: ((other: Type) => boolean)

Type declaration

    • (other): boolean
    • Does this behavior support functionality of a specific implementation?

      Parameters

      Returns boolean

Accessors

Methods

  • Parameters

    • fn: (() => void)

      the elevated logic

        • (): void
        • Returns void

    Returns void

  • Create a generic callback function that has the same properties as a Reactor.

    Like a reactor, the callback's "this" will be bound to an active Behavior instance. Because of this: The reactor MUST be a real JS function - arrow functions will not work!

    Type Parameters

    • A extends any[]
    • R

    Parameters

    Returns ((...args: A) => undefined | R)

      • (...args): undefined | R
      • Parameters

        • Rest...args: A

        Returns undefined | R

  • Behaviors are ephemeral and should not perform initialization in their constructor. They can override this method instead.

    This method may be synchronous or asyncronous. If asynchronous, the behavior will not be available for external use until initialization completes.

    Returns void

  • Install a Reactor.

    Important: The reactor MUST be a real JS function - arrow functions will not work!

    Type Parameters

    Parameters

    Returns void