# C_PingSecure: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_PingSecure

## Functions

### C_PingSecure.ClearHitTestPingInfo

```lua
C_PingSecure.ClearHitTestPingInfo()
```

### C_PingSecure.CreateFrame

```lua
C_PingSecure.CreateFrame()
```

### C_PingSecure.DisplayError

```lua
C_PingSecure.DisplayError(error)
```

Arguments:
- `error`: cstring

### C_PingSecure.GetTargetPingReceiver

```lua
frame = C_PingSecure.GetTargetPingReceiver(mousePosX, mousePosY)
```

Arguments:
- `mousePosX`: number
- `mousePosY`: number

Returns:
- `frame`: ScriptRegion

### C_PingSecure.SendHitTestPing

```lua
result = C_PingSecure.SendHitTestPing([type])
```

Arguments:
- `type`: PingSubjectType, may be nil

Returns:
- `result`: SendPingResult

### C_PingSecure.SendPlayerItemPing

```lua
result = C_PingSecure.SendPlayerItemPing(itemID)
```

Arguments:
- `itemID`: number

Returns:
- `result`: SendPingResult

### C_PingSecure.SendPlayerSpellCategoryPing

```lua
result = C_PingSecure.SendPlayerSpellCategoryPing(spellCategoryID)
```

Arguments:
- `spellCategoryID`: number

Returns:
- `result`: SendPingResult

### C_PingSecure.SendPlayerSpellPing

```lua
result = C_PingSecure.SendPlayerSpellPing(spellID)
```

Arguments:
- `spellID`: number

Returns:
- `result`: SendPingResult

### C_PingSecure.SendUnitPing

```lua
result = C_PingSecure.SendUnitPing(target, [type], [isPlayerResource])
```

Arguments:
- `target`: WOWGUID
- `type`: PingSubjectType, may be nil
- `isPlayerResource`: bool, may be nil. Player unit frame contextual pings have the optional ability to call out the player's health and in some cases mana. This field does nothing for non player pings.

Returns:
- `result`: SendPingResult

### C_PingSecure.SetHitTestPingTarget

```lua
state = C_PingSecure.SetHitTestPingTarget(mousePosX, mousePosY, [forcePointPing])
```

Arguments:
- `mousePosX`: number
- `mousePosY`: number
- `forcePointPing`: bool, may be nil

Returns:
- `state`: PingSetTargetState

### C_PingSecure.SetHitTestTargetAndSendPing

```lua
result = C_PingSecure.SetHitTestTargetAndSendPing()
```

Returns:
- `result`: SendPingResult

### C_PingSecure.SetPendingPingOffScreenCallback

```lua
C_PingSecure.SetPendingPingOffScreenCallback(cb)
```

Arguments:
- `cb`: PendingPingOffScreenCallback

### C_PingSecure.SetPingCooldownStartedCallback

```lua
C_PingSecure.SetPingCooldownStartedCallback(cb)
```

Arguments:
- `cb`: PingCooldownStartedCallback

### C_PingSecure.SetPingPinFrameAddedCallback

```lua
C_PingSecure.SetPingPinFrameAddedCallback(cb)
```

Arguments:
- `cb`: PingPinFrameAddedCallback

### C_PingSecure.SetPingPinFrameRemovedCallback

```lua
C_PingSecure.SetPingPinFrameRemovedCallback(cb)
```

Arguments:
- `cb`: PingPinFrameRemovedCallback

### C_PingSecure.SetPingPinFrameScreenClampStateUpdatedCallback

```lua
C_PingSecure.SetPingPinFrameScreenClampStateUpdatedCallback(cb)
```

Arguments:
- `cb`: PingPinFrameScreenClampStateUpdatedCallback

### C_PingSecure.SetPingRadialWheelCreatedCallback

```lua
C_PingSecure.SetPingRadialWheelCreatedCallback(cb)
```

Arguments:
- `cb`: PingRadialWheelCreatedCallback

### C_PingSecure.SetSendMacroPingCallback

```lua
C_PingSecure.SetSendMacroPingCallback(cb)
```

Arguments:
- `cb`: SendMacroPingCallback

### C_PingSecure.SetTogglePingListenerCallback

```lua
C_PingSecure.SetTogglePingListenerCallback(cb)
```

Arguments:
- `cb`: TogglePingListenerCallback

## Events

### UNIT_PING_PIN_ADDED

Payload, after the event's name:
- `guid`: WOWGUID
- `uiTextureKit`: textureKit

### UNIT_PING_PIN_REMOVED

Payload, after the event's name:
- `guid`: WOWGUID

## Tables

### PingActionCooldownUIInfo (structure)

- `durationMs`: number, default 0
- `remainingMs`: number, default 0

### PingActionUIInfo (structure)

- `spellID`: number, default 0
- `itemID`: number, default 0
- `textureFileDataID`: number, default 0
- `cooldownInfo`: PingActionCooldownUIInfo, may be nil
- `spellCategoryID`: number, default 0

### SendPingResult (structure)

- `type`: PingSubjectType, may be nil
- `result`: PingResult

### PendingPingOffScreenCallback (callbacktype)

### PingCooldownStartedCallback (callbacktype)

- `info`: PingCooldownInfo

### PingPinFrameAddedCallback (callbacktype)

- `region`: ScriptRegion
- `uiTextureKit`: textureKit
- `isWorldPoint`: bool
- `actionInfo`: PingActionUIInfo, may be nil

### PingPinFrameRemovedCallback (callbacktype)

- `region`: ScriptRegion

### PingPinFrameScreenClampStateUpdatedCallback (callbacktype)

- `region`: ScriptRegion
- `state`: bool

### PingRadialWheelCreatedCallback (callbacktype)

- `region`: ScriptRegion

### SendMacroPingCallback (callbacktype)

- `macroInfo`: PingMacroInfo

### TogglePingListenerCallback (callbacktype)

- `down`: bool

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
