BlockContentTimeWindowComponent: {
    attributes: {
        blockContentTimeWindow: Attribute<TypeFromFields<{
            dayOfWeek: FieldType<ContentControl.DayOfWeek>;
            timePeriod: FieldType<TypeFromFields<{
                endHour: FieldType<(...)>;
                endMinute: FieldType<(...)>;
                startHour: FieldType<(...)>;
                startMinute: FieldType<(...)>;
            }>[]>;
            timeWindowIndex: FieldType<null | number>;
        }>[], any>;
    };
    commands: {
        removeBlockContentTimeWindow: Command<TypeFromFields<{
            timeWindowIndexes: FieldType<number[]>;
        }>, void, any>;
        setBlockContentTimeWindow: Command<TypeFromFields<{
            timeWindow: FieldType<TypeFromFields<{
                dayOfWeek: FieldType<ContentControl.DayOfWeek>;
                timePeriod: FieldType<TypeFromFields<(...)>[]>;
                timeWindowIndex: FieldType<null | number>;
            }>>;
        }>, void, any>;
    };
    events: {
        enteringBlockContentTimeWindow: Event<void, any>;
    };
} = ...

A ContentControlCluster supports these elements if it supports feature BlockContentTimeWindow.

Type declaration

  • Readonlyattributes: {
        blockContentTimeWindow: Attribute<TypeFromFields<{
            dayOfWeek: FieldType<ContentControl.DayOfWeek>;
            timePeriod: FieldType<TypeFromFields<{
                endHour: FieldType<(...)>;
                endMinute: FieldType<(...)>;
                startHour: FieldType<(...)>;
                startMinute: FieldType<(...)>;
            }>[]>;
            timeWindowIndex: FieldType<null | number>;
        }>[], any>;
    }
    • ReadonlyblockContentTimeWindow: Attribute<TypeFromFields<{
          dayOfWeek: FieldType<ContentControl.DayOfWeek>;
          timePeriod: FieldType<TypeFromFields<{
              endHour: FieldType<(...)>;
              endMinute: FieldType<(...)>;
              startHour: FieldType<(...)>;
              startMinute: FieldType<(...)>;
          }>[]>;
          timeWindowIndex: FieldType<null | number>;
      }>[], any>

      Indicates a set of periods during which the playback of content on media device shall be blocked when the Content Control feature is activated. The media device shall reject any request to play content during one period of this attribute. If it is entering any one period of this attribute, the media device shall block content which is playing and generate an event EnteringBlockContentTimeWindow. There shall not be multiple entries in this attribute list for the same day of week.

      MatterSpecification.v13.Cluster § 6.13.7.11

  • Readonlycommands: {
        removeBlockContentTimeWindow: Command<TypeFromFields<{
            timeWindowIndexes: FieldType<number[]>;
        }>, void, any>;
        setBlockContentTimeWindow: Command<TypeFromFields<{
            timeWindow: FieldType<TypeFromFields<{
                dayOfWeek: FieldType<ContentControl.DayOfWeek>;
                timePeriod: FieldType<TypeFromFields<(...)>[]>;
                timeWindowIndex: FieldType<null | number>;
            }>>;
        }>, void, any>;
    }
    • ReadonlyremoveBlockContentTimeWindow: Command<TypeFromFields<{
          timeWindowIndexes: FieldType<number[]>;
      }>, void, any>

      The purpose of this command is to remove the selected time windows from the BlockContentTimeWindow attribute.

      Upon receipt of the RemoveBlockContentTimeWindow command, the media device shall check if the time window index passed in this command presents in the BlockContentTimeWindow attribute.

      If one or more time window indexes passed in this command are not present in BlockContentTimeWindow attribute, then a response with TimeWindowNotExist error status shall be returned.

      MatterSpecification.v13.Cluster § 6.13.8.17

    • ReadonlysetBlockContentTimeWindow: Command<TypeFromFields<{
          timeWindow: FieldType<TypeFromFields<{
              dayOfWeek: FieldType<ContentControl.DayOfWeek>;
              timePeriod: FieldType<TypeFromFields<(...)>[]>;
              timeWindowIndex: FieldType<null | number>;
          }>>;
      }>, void, any>

      The purpose of this command is to set the BlockContentTimeWindow attribute.

      Upon receipt of the SetBlockContentTimeWindow command, the media device shall check if the

      TimeWindowIndex field passed in this command is NULL. If the TimeWindowIndex field is NULL, the media device shall check if there is an entry in the BlockContentTimeWindow attribute which matches with the TimePeriod and DayOfWeek fields passed in this command. * If Yes, then a response with TimeWindowAlreadyExist error status shall be returned. * If No, then the media device shall assign one unique index for this time window and add it into the BlockContentTimeWindow list attribute.

      If the TimeWindowIndex field is not NULL and presents in the BlockContentTimeWindow attribute, the media device shall replace the original time window with the new time window passed in this command.

      MatterSpecification.v13.Cluster § 6.13.8.16

  • Readonlyevents: {
        enteringBlockContentTimeWindow: Event<void, any>;
    }
    • ReadonlyenteringBlockContentTimeWindow: Event<void, any>

      This event shall be generated when entering a period of blocked content as configured in the BlockContentTimeWindow attribute.

      MatterSpecification.v13.Cluster § 6.13.9.2