DurationControl
Swift
public struct DurationControl: Sendable
Steamworks DurationControl_t
Topics
var result: Result
var result: Result
var appid: AppID
var appid: AppID
var applicable: Bool
var applicable: Bool
var csecsLast5h: Int
var csecsLast5h: Int
var progress: DurationControlProgress
var progress: DurationControlProgress
var notification: DurationControlNotification
var notification: DurationControlNotification
var csecsToday: Int
var csecsToday: Int
var csecsRemaining: Int
var csecsRemaining: Int
init(result: Result, appid: AppID, applicable: Bool, csecsLast5h: Int, progress: DurationControlProgress, notification: DurationControlNotification, csecsToday: Int, csecsRemaining: Int)
init(result: Result, appid: AppID, applicable: Bool, csecsLast5h: Int, progress: DurationControlProgress, notification: DurationControlNotification, csecsToday: Int, csecsRemaining: Int)
Create a customized DurationControl
Declaration
Swift
public init(
result: Result = .none, appid: AppID = 0, applicable: Bool = false,
csecsLast5h: Int = 0, progress: DurationControlProgress = .full,
notification: DurationControlNotification = .none, csecsToday: Int = 0,
csecsRemaining: Int = 0)