My Project
Instance Methods | Properties | List of all members
NELyricLine Class Reference

逐行歌词数据对象 More...

#import <NELyricLine.h>

Inheritance diagram for NELyricLine:

Instance Methods

(nullable NELyricWord *) - wordAtTime:
 
(NELyricWord *) - wordAtIdx:
 
(NELyricWord *) - wordAtIdx:atWordIdx:
 
(NSRange) - rangeAtWord:
 

Properties

NSString * text
 
NSString * content
 
NSInteger startTime
 
NSInteger interval
 
NSArray< NELyricWord * > * words
 

Detailed Description

逐行歌词数据对象

Method Documentation

◆ rangeAtWord:

- (NSRange) rangeAtWord: (NELyricWord *)  word

word所处的range

Parameters
wordword对象
Returns
range 字符range

◆ wordAtIdx:

- (NELyricWord *) wordAtIdx: (NSInteger)  idx

字符为单位找word

Parameters
idx第几个字符
Returns
word 对象

◆ wordAtIdx:atWordIdx:

- (NELyricWord *) wordAtIdx: (NSInteger)  idx
atWordIdx: (NSInteger *)  atWordIdx 

◆ wordAtTime:

- (nullable NELyricWord *) wordAtTime: (NSInteger)  time

所处time 的 word 对象

Parameters
time时间 ms
Returns
word 对象

Property Documentation

◆ content

- (NSString*) content
readwritenonatomiccopy

解析前的内容

◆ interval

- (NSInteger) interval
readwritenonatomicassign

持续时间 ms

◆ startTime

- (NSInteger) startTime
readwritenonatomicassign

开始时间 ms

◆ text

- (NSString*) text
readwritenonatomiccopy

展示文本

◆ words

- (NSArray<NELyricWord *>*) words
readwritenonatomicstrong

所包含的逐字对象


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