---
title: "xpc_type_get_name(_:)"
framework: xpc
role: symbol
role_heading: Function
path: "xpc/xpc_type_get_name(_:)"
---

# xpc_type_get_name(_:)

Returns a string that describes an XPC object type.

## Declaration

```swift
func xpc_type_get_name(_ type: xpc_type_t) -> UnsafePointer<CChar>
```

## Parameters

- `type`: The type to describe.

## Return Value

Return Value A string describing the type of an object, like "string" or "int64". This string should not be freed or modified.

## See Also

### Identity

- [xpc_get_type(_:)](xpc/xpc_get_type(_:).md)
- [xpc_hash(_:)](xpc/xpc_hash(_:).md)
