Slide 34
Slide 34 text
w ཁૉ
‣ ։࢝࣌ࠁ
‣ ऴྃ࣌ࠁ
‣ ܁Γฦ͠ͷ༗ແ
‣ ࣄલ༧ࠂ࣌ؒ
4DSFFO5JNF"1*
%FWJDF"DUJWJUZ4DIFEVMFɿର࣌ؒଳͷఆٛ
public struct DeviceActivitySchedule {
public init(
intervalStart: DateComponents,
intervalEnd: DateComponents,
repeats: Bool,
warningTime: DateComponents? = nil
)
}
IUUQTEFWFMPQFSBQQMFDPNEPDVNFOUBUJPOEFWJDFBDUJWJUZEFWJDFBDUJWJUZTDIFEVMF
࣌ͷใͰ͢ɻ#FUBͷͨΊมߋ͞Ε͍ͯΔ߹͕͋Γ·͢ɻ
import DeviceActivity
// ྫɿຖͷ10࣌ʙே5࣌ͱ͍͏࣌ؒଳͷఆٛ
let night = DeviceActivitySchedule(
intervalStart: DateComponents(hour: 22, minute: 0),
intervalEnd: DateComponents(hour: 5, minute: 0),
repeats: true,
warningTime: nil
)