Table of Contents

Struct NativePersonNameComponents

Wrapper for iOS's PersonNameComponents.

public struct NativePersonNameComponents

Fields

FamilyName

The user's family name, or its phonetic representation if this struct is created from PhoneticRepresentation.

public nint FamilyName

Field Value

nint

GivenName

The user's given name, or its phonetic representation if this struct is created from PhoneticRepresentation.

public nint GivenName

Field Value

nint

MiddleName

The user's middle name, or its phonetic representation if this struct is created from PhoneticRepresentation.

public nint MiddleName

Field Value

nint

NamePrefix

Prefix to the user's name, or its phonetic representation if this struct is created from PhoneticRepresentation.

public nint NamePrefix

Field Value

nint

NameSuffix

Suffix to the user's name, or its phonetic representation if this struct is created from PhoneticRepresentation.

public nint NameSuffix

Field Value

nint

Nickname

The user's nickname, or its phonetic representation if this struct is created from PhoneticRepresentation.

public nint Nickname

Field Value

nint

PhoneticRepresentation

Phonetic representation of this struct's values.

public nint PhoneticRepresentation

Field Value

nint

Remarks

This is an instance of NativePersonNameComponents. If it has not been unwrapped, it will be freed when this struct's Dispose() is called. If unwrapped using UnwrapPhoneticRepresentation(), the caller is responsible for disposing the returned object.

Methods

Dispose()

Deallocates native resources.

public void Dispose()

Remarks

This struct has been intentionally not set as IDisposable to prevent accidental struct copies caused by "using" statements.

UnwrapPhoneticRepresentation()

public NativePersonNameComponents? UnwrapPhoneticRepresentation()

Returns

NativePersonNameComponents?

The unwrapped struct or null if PhoneticRepresentation is a nullptr.

Remarks

This can only be called once, as after PhoneticRepresentation is unwrapped, the reference is deallocated. This is to prevent multiple copies of the same memory from being created.