Tuya iOS Smart Life App SDK 5.15.0
ThingTimelineView Class Reference

#import <ThingTimelineView.h>

Inheritance diagram for ThingTimelineView:

Instance Methods

(void) - enableSelectionModeWithMinLength:maxLength:
 
(NSRange) - finishSelection
 exit selection mode More...
 
(void) - setCurrentTime:animated:
 set current time More...
 
(void) - enableSelectionModeWithMinLength:maxLength:
 
(NSRange) - finishSelection
 exit selection mode More...
 
(void) - setCurrentTime:animated:
 set current time More...
 

Properties

CGFloat spacePerUnit
 the space of two long tick mark More...
 
ThingTimelineUnitMode unitMode
 the seconds of two long tick mark More...
 
UIColor * tickMarkColor
 color of tick mark More...
 
NSArraybackgroundGradientColors
 
NSArraybackgroundGradientLocations
 
UIColor * contentColor
 time slice source color More...
 
NSArraycontentGradientColors
 
NSArraycontentGradientLocations
 
NSArrayeventGradientColors
 
CGFloat timeHeaderHeight
 height of the time text bar in the top More...
 
CGFloat timeTextTop
 top space of the time text bar More...
 
NSDictionary * timeStringAttributes
 time text attributes More...
 
BOOL showTimeText
 is show the time string More...
 
BOOL showShortMark
 is show short tick mark between two long tick mark More...
 
NSTimeInterval currentTime
 selected time More...
 
NSDate * date
 the day More...
 
NSTimeZone * timeZone
 time zone More...
 
BOOL isDragging
 is being dragging More...
 
BOOL isDecelerating
 is continue moving afterwards More...
 
UIColor * midLineColor
 color of selection line at the midle More...
 
UIColor * selectionBoxColor
 tint color of selection box More...
 
NSRange selectedTimeRange
 selected time range More...
 
BOOL isSelectionEnabled
 is in selection mode More...
 
UIColor * selectionTimeBackgroundColor
 the selected time when dragging selection box More...
 
UIColor * selectionTimeTextColor
 
NSUInteger selectionTimeTextFontSize
 
NSArray< id< ThingTimelineViewSource > > * sourceModels
 time slices More...
 
NSArray< id< ThingTimelineViewSource > > * AIDetectionSourceModels
 ai detection datasource More...
 
NSArrayaiEventContentGradientColors
 ai background color More...
 
id< ThingTimelineViewDelegatedelegate
 delegate More...
 

Detailed Description

Definition at line 45 of file ThingTimelineView.h.

Method Documentation

◆ enableSelectionModeWithMinLength:maxLength: [1/2]

- (void) enableSelectionModeWithMinLength: (NSInteger)  min
maxLength: (NSInteger)  max 

enable selection mode

Parameters
minmin seconds to selected
maxmax seconds to selected

◆ enableSelectionModeWithMinLength:maxLength: [2/2]

- (void) enableSelectionModeWithMinLength: (NSInteger)  min
maxLength: (NSInteger)  max 

enable selection mode

Parameters
minmin seconds to selected
maxmax seconds to selected

◆ finishSelection [1/2]

- (NSRange) finishSelection

exit selection mode

◆ finishSelection [2/2]

- (NSRange) finishSelection

exit selection mode

◆ setCurrentTime:animated: [1/2]

- (void) setCurrentTime: (NSTimeInterval)  currentTime
animated: (BOOL)  animated 

set current time

◆ setCurrentTime:animated: [2/2]

- (void) setCurrentTime: (NSTimeInterval)  currentTime
animated: (BOOL)  animated 

set current time

Property Documentation

◆ AIDetectionSourceModels

- (NSArray< id< ThingTimelineViewSource > > *) AIDetectionSourceModels
readwritenonatomiccopy

ai detection datasource

Definition at line 114 of file ThingTimelineView.h.

◆ aiEventContentGradientColors

- (NSArray *) aiEventContentGradientColors
readwritenonatomiccopy

ai background color

Definition at line 117 of file ThingTimelineView.h.

◆ backgroundGradientColors

- (NSArray *) backgroundGradientColors
readwritenonatomicstrong

Definition at line 56 of file ThingTimelineView.h.

◆ backgroundGradientLocations

- (NSArray *) backgroundGradientLocations
readwritenonatomicstrong

Definition at line 57 of file ThingTimelineView.h.

◆ contentColor

- (UIColor *) contentColor
readwritenonatomicstrong

time slice source color

Definition at line 60 of file ThingTimelineView.h.

◆ contentGradientColors

- (NSArray *) contentGradientColors
readwritenonatomiccopy

Definition at line 62 of file ThingTimelineView.h.

◆ contentGradientLocations

- (NSArray *) contentGradientLocations
readwritenonatomicstrong

Definition at line 63 of file ThingTimelineView.h.

◆ currentTime

- (NSTimeInterval) currentTime
readwritenonatomicassign

selected time

Definition at line 81 of file ThingTimelineView.h.

◆ date

- (NSDate *) date
readwritenonatomicstrong

the day

Definition at line 84 of file ThingTimelineView.h.

◆ delegate

- (id< ThingTimelineViewDelegate >) delegate
readwritenonatomicweak

delegate

Definition at line 119 of file ThingTimelineView.h.

◆ eventGradientColors

- (NSArray *) eventGradientColors
readwritenonatomiccopy

Definition at line 64 of file ThingTimelineView.h.

◆ isDecelerating

- (BOOL) isDecelerating
readnonatomicassign

is continue moving afterwards

Definition at line 93 of file ThingTimelineView.h.

◆ isDragging

- (BOOL) isDragging
readnonatomicassign

is being dragging

Definition at line 90 of file ThingTimelineView.h.

◆ isSelectionEnabled

- (BOOL) isSelectionEnabled
readnonatomicassign

is in selection mode

Definition at line 103 of file ThingTimelineView.h.

◆ midLineColor

- (UIColor *) midLineColor
readwritenonatomicstrong

color of selection line at the midle

Definition at line 96 of file ThingTimelineView.h.

◆ selectedTimeRange

- (NSRange) selectedTimeRange
readnonatomicassign

selected time range

Definition at line 101 of file ThingTimelineView.h.

◆ selectionBoxColor

- (UIColor *) selectionBoxColor
readwritenonatomicstrong

tint color of selection box

Definition at line 99 of file ThingTimelineView.h.

◆ selectionTimeBackgroundColor

- (UIColor *) selectionTimeBackgroundColor
readwritenonatomicstrong

the selected time when dragging selection box

Definition at line 106 of file ThingTimelineView.h.

◆ selectionTimeTextColor

- (UIColor *) selectionTimeTextColor
readwritenonatomicstrong

Definition at line 107 of file ThingTimelineView.h.

◆ selectionTimeTextFontSize

- (NSUInteger) selectionTimeTextFontSize
readwritenonatomicassign

Definition at line 108 of file ThingTimelineView.h.

◆ showShortMark

- (BOOL) showShortMark
readwritenonatomicassign

is show short tick mark between two long tick mark

Definition at line 78 of file ThingTimelineView.h.

◆ showTimeText

- (BOOL) showTimeText
readwritenonatomicassign

is show the time string

Definition at line 75 of file ThingTimelineView.h.

◆ sourceModels

- (NSArray< id< ThingTimelineViewSource > > *) sourceModels
readwritenonatomiccopy

time slices

Definition at line 111 of file ThingTimelineView.h.

◆ spacePerUnit

- (CGFloat) spacePerUnit
readwritenonatomicassign

the space of two long tick mark

Definition at line 48 of file ThingTimelineView.h.

◆ tickMarkColor

- (UIColor *) tickMarkColor
readwritenonatomicstrong

color of tick mark

Definition at line 54 of file ThingTimelineView.h.

◆ timeHeaderHeight

- (CGFloat) timeHeaderHeight
readwritenonatomicassign

height of the time text bar in the top

Definition at line 67 of file ThingTimelineView.h.

◆ timeStringAttributes

- (NSDictionary *) timeStringAttributes
readwritenonatomicstrong

time text attributes

Definition at line 72 of file ThingTimelineView.h.

◆ timeTextTop

- (CGFloat) timeTextTop
readwritenonatomicassign

top space of the time text bar

Definition at line 69 of file ThingTimelineView.h.

◆ timeZone

- (NSTimeZone *) timeZone
readwritenonatomicstrong

time zone

Definition at line 87 of file ThingTimelineView.h.

◆ unitMode

- (ThingTimelineUnitMode) unitMode
readwritenonatomicassign

the seconds of two long tick mark

Definition at line 51 of file ThingTimelineView.h.


The documentation for this class was generated from the following files: