S2BDanmaku
public class S2BDanmaku
Basic information of a local danmaku
-
Initialize a danmaku with given content, cid to post to, time to display, and configurations.
Declaration
Swift
public init(_ danmaku: String, playTime: TimeInterval, config: Config)
Parameters
danmaku
content of the danmaku.
cid
cid for the danmaku to post to.
playTime
time to display the danmaku.
config
configurations of the danmaku.
-
Initialize a danmaku with given content, cid to post to, time to display, and any of the configurations.
Declaration
Parameters
danmaku
content of the danmaku.
cid
cid for the danmaku to post to.
playTime
time to display the danmaku.
color
color of the danamku, in integer form.
fontSize
font size of the danmaku.
mode
mode/type of the danmaku.
pool
pool for the danmaku to post to.
-
Content of the danmaku
Declaration
Swift
public let content: String
-
When the danmaku should appear
Declaration
Swift
public let playTime: TimeInterval
-
Configurations of the danmaku
Declaration
Swift
public let config: Config
-
Danmaku Configurations.
See moreDeclaration
Swift
public struct Config