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
danmakucontent of the danmaku.
cidcid for the danmaku to post to.
playTimetime to display the danmaku.
configconfigurations of the danmaku.
-
Initialize a danmaku with given content, cid to post to, time to display, and any of the configurations.
Declaration
Parameters
danmakucontent of the danmaku.
cidcid for the danmaku to post to.
playTimetime to display the danmaku.
colorcolor of the danamku, in integer form.
fontSizefont size of the danmaku.
modemode/type of the danmaku.
poolpool 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
View on GitHub
Install in Dash
S2BDanmaku Class Reference