OCKRingItem Class Reference
Inherits from | OCKInsightItem : NSObject |
---|---|
Declared in | OCKRingItem.h |
The OCKRingItem
is an object that can display a ring representing a value,
along with a title and text.
– initWithTitle:text:tintColor:value:glyphType:glyphFilename:
Returns an initialzed ring item using the specified values.
- (instancetype)initWithTitle:(nullable NSString *)title text:(nullable NSString *)text tintColor:(nullable UIColor *)tintColor value:(double)value glyphType:(OCKGlyphType)glyphType glyphFilename:(nullable NSString *)glyphFilename
Parameters
title |
The title for the message item (see |
---|---|
text |
The description text for the message item (see |
tintColor |
The tint color for the message item (see |
value |
The value to display in the ring view. |
glyphType |
The glyph type (see |
glyphFilename |
The glyph filename to be used if using glyph type custom (see |
Return Value
An initialzed ring item.
Declared In
OCKRingItem.h
value
The ring value.
@property (nonatomic, readonly) double value
Discussion
This fills the ring up to the value. Value must be between 0 and 1.
Declared In
OCKRingItem.h
glyphType
The glpyh type. This determines the icon used inside the ring.
@property (nonatomic, readonly) OCKGlyphType glyphType
Discussion
See the OCKGlyphType
enum.
Declared In
OCKRingItem.h
glyphFilename
The glpyh filename.
@property (nonatomic, copy, readonly) NSString *glyphFilename
Discussion
This filename is only used if the glyph type is custom (see OCKGlyphTypeCustom
).
Declared In
OCKRingItem.h