ComponentAlarmTrigger.relative


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "3.34" ) ]
public ComponentAlarmTrigger.relative (ComponentAlarmTriggerKind kind, Duration duration)

Creates a new ComponentAlarmTrigger structure, set with the given kind and duration.

The kind can be any but the e_cal_component_alarm_trigger_absolute. To create an absolute trigger use ComponentAlarmTrigger.absolute. Free the trigger with e_cal_component_alarm_trigger_free, when no longer needed.

Parameters:

kind

an ComponentAlarmTriggerKind, any but the e_cal_component_alarm_trigger_absolute

duration

the duration relative to kind, as an Duration

Returns:

a newly allocated ComponentAlarmTrigger