Inherits from NSObject
Declared in IMCandidateInfo.h

Overview

Interface CandidateInfo.

Properties

completions

Array of completion labels for this character range.

@property (nonatomic, readonly) NSArray *completions

Declared In

IMCandidateInfo.h

labels

Array of candidate labels for this character range.

@property (nonatomic, readonly) NSArray *labels

Declared In

IMCandidateInfo.h

range

Character range.

@property (nonatomic, readonly) NSRange range

Declared In

IMCandidateInfo.h

selectedIndex

Index of the selected candidate and completion labels.

@property (nonatomic, readonly) NSInteger selectedIndex

Declared In

IMCandidateInfo.h

sources

Array of LK sources for this character range.

@property (nonatomic, readonly) NSArray *sources

Declared In

IMCandidateInfo.h

Class Methods

candidateInfoWithRange:selectedIndex:labels:completions:sources:

Create a new candidate info object.

+ (instancetype)candidateInfoWithRange:(NSRange)range selectedIndex:(NSInteger)selectedIndex labels:(NSArray *)labels completions:(NSArray *)completions sources:(NSArray *)sources

Parameters

range

NSRange range of the candidate info.

selectedIndex

NSUInteger index of the selected candidate.

labels

NSArray array of labels.

completions

NSArray array of completions.

sources

NSArray array of sources.

Declared In

IMCandidateInfo.h