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

    Swift

    public convenience init(_ danmaku: String, playTime: TimeInterval, rgb color: Int? = nil, fontSize: Config.FontSize? = nil, mode: Config.Mode? = nil, pool: Config.Pool? = nil)

    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 more

    Declaration

    Swift

    public struct Config