---
title: "getPeriodicDelay(_:interval:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbutton/getperiodicdelay(_:interval:)"
---

# getPeriodicDelay(_:interval:)

Returns by reference the delay and interval periods for a continuous button.

## Declaration

```swift
func getPeriodicDelay(_ delay: UnsafeMutablePointer<Float>, interval: UnsafeMutablePointer<Float>)
```

## Parameters

- `delay`: On return, the amount of time (in seconds) the button will pause before starting to periodically send action messages to the target object. The default delay is taken from a user’s default (60 seconds maximum). If the user hasn’t specified a default value, delay defaults to 0.4 seconds,
- `interval`: On return, the amount of time (in seconds) the button will pause between sending each action message. The default interval is taken from a user’s default (60 seconds maximum). If the user hasn’t specified a default value, interval defaults to 0.075 seconds.

## See Also

### Related Documentation

- [isContinuous](appkit/nscontrol/iscontinuous.md)

### Configuring buttons

- [setButtonType(_:)](appkit/nsbutton/setbuttontype(_:).md)
- [setPeriodicDelay(_:interval:)](appkit/nsbutton/setperiodicdelay(_:interval:).md)
- [contentTintColor](appkit/nsbutton/contenttintcolor.md)
- [hasDestructiveAction](appkit/nsbutton/hasdestructiveaction.md)
- [alternateTitle](appkit/nsbutton/alternatetitle.md)
- [attributedTitle](appkit/nsbutton/attributedtitle.md)
- [attributedAlternateTitle](appkit/nsbutton/attributedalternatetitle.md)
- [title](appkit/nsbutton/title.md)
- [symbolConfiguration](appkit/nsbutton/symbolconfiguration.md)
- [sound](appkit/nsbutton/sound.md)
- [isSpringLoaded](appkit/nsbutton/isspringloaded.md)
- [maxAcceleratorLevel](appkit/nsbutton/maxacceleratorlevel.md)
- [tintProminence](appkit/nsbutton/tintprominence.md)
- [NSTintProminence](appkit/nstintprominence.md)
- [borderShape](appkit/nsbutton/bordershape.md)
