Struct NativePersonNameComponents
- Namespace
- Uralstech.UMoth.AppleIdSignIn.Native
Wrapper for iOS's PersonNameComponents.
public struct NativePersonNameComponentsFields
FamilyName
The user's family name, or its phonetic representation if this struct is created from PhoneticRepresentation.
public nint FamilyNameField Value
- nint
GivenName
The user's given name, or its phonetic representation if this struct is created from PhoneticRepresentation.
public nint GivenNameField Value
- nint
MiddleName
The user's middle name, or its phonetic representation if this struct is created from PhoneticRepresentation.
public nint MiddleNameField Value
- nint
NamePrefix
Prefix to the user's name, or its phonetic representation if this struct is created from PhoneticRepresentation.
public nint NamePrefixField Value
- nint
NameSuffix
Suffix to the user's name, or its phonetic representation if this struct is created from PhoneticRepresentation.
public nint NameSuffixField Value
- nint
Nickname
The user's nickname, or its phonetic representation if this struct is created from PhoneticRepresentation.
public nint NicknameField Value
- nint
PhoneticRepresentation
Phonetic representation of this struct's values.
public nint PhoneticRepresentationField 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()
Unwraps PhoneticRepresentation into an instance of NativePersonNameComponents.
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.