> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Visão geral da API C de serviços - PFEntity.h

> Visão geral da API C de serviços - PFEntity.h

## Funções

| Função | Descrição |
| - | - |
| [PFEntityCloseHandle](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityclosehandle) | Fecha um PFEntityHandle. |
| [PFEntityDuplicateHandle](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityduplicatehandle) | Duplica um PFEntityHandle. |
| [PFEntityGetAPIEndpoint](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygetapiendpoint) | Obtém o ponto de extremidade da API para o PFServiceConfig associado a um identificador de entidade. |
| [PFEntityGetAPIEndpointSize](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygetapiendpointsize) | Obtém o tamanho do buffer necessário para armazenar a cadeia de caracteres do ponto de extremidade da API de um identificador de entidade. |
| [PFEntityGetEntityKey](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygetentitykey) | Obtém o PFEntityKey de uma entidade. |
| [PFEntityGetEntityKeySize](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygetentitykeysize) | Obtém o tamanho em bytes necessário para armazenar o PFEntityKey de uma entidade. |
| [PFEntityGetEntityTokenAsync](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenasync) | Obtém o PFEntityToken armazenado em cache de uma entidade. |
| [PFEntityGetEntityTokenResult](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresult) | Obtém o resultado de uma chamada bem-sucedida de PFEntityGetEntityTokenAsync. |
| [PFEntityGetEntityTokenResultSize](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygetentitytokenresultsize) | Obtém o tamanho em bytes necessário para armazenar o resultado de uma chamada de PFEntityGetEntityTokenAsync. |
| [PFEntityGetSecretKey](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygetsecretkey) | Obtém a secretKey do PlayFab associada a uma entidade de título. Falhará com E\_PF\_NOSECRETKEY se não houver uma chave secreta associada à entidade fornecida. |
| [PFEntityGetSecretKeySize](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygetsecretkeysize) | Obtém o tamanho do buffer necessário para armazenar a secretKey do PlayFab. Falhará com E\_PF\_NOSECRETKEY se não houver uma chave secreta associada à entidade fornecida. |
| [PFEntityGetTitleId](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygettitleid) | Obtém o titleId do PFServiceConfig associado a um identificador de entidade. |
| [PFEntityGetTitleIdSize](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygettitleidsize) | Obtém o tamanho do buffer necessário para armazenar a cadeia de caracteres do titleId de um identificador de entidade. |
| [PFEntityIsTitlePlayer](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityistitleplayer) | Método de conveniência para verificar se uma entidade é um Title Player. Isso equivale a chamar PFEntityGetEntityKey e comparar entityKey.type com PFTitlePlayerEntityType. |
| [PFEntityRegisterTokenExpiredEventHandler](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityregistertokenexpiredeventhandler) | Registra um manipulador para eventos de EntityToken expirado. |
| [PFEntityRegisterTokenRefreshedEventHandler](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityregistertokenrefreshedeventhandler) | Registra um manipulador para eventos de EntityToken atualizado. |
| [PFEntityTokenExpiredEventHandler](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitytokenexpiredeventhandler) | Manipulador de eventos de EntityToken expirado. Necessário para reautenticar jogadores em cenários em que o SDK não consegue atualizar automaticamente o EntityToken armazenado em cache. |
| [PFEntityTokenRefreshedEventHandler](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitytokenrefreshedeventhandler) | Um manipulador invocado sempre que uma entidade é reautenticada automaticamente, obtendo assim um novo EntityToken. Uma entidade será reautenticada automaticamente antes que seu EntityToken expire. |
| [PFEntityUnregisterTokenExpiredEventHandler](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityunregistertokenexpiredeventhandler) | Cancela o registro de um retorno de chamada registrado anteriormente. |
| [PFEntityUnregisterTokenRefreshedEventHandler](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityunregistertokenrefreshedeventhandler) | Cancela o registro de um PFEntityTokenRefreshedCallback registrado anteriormente. |

## Estruturas

| Estrutura | Descrição |
| - | - |
| [PFEntityToken](/pt-BR/services/playfab/api-references/c/pfentity/structs/pfentitytoken) | EntityToken do PlayFab e seu tempo de expiração. Usado para autenticar chamadas de serviço do PlayFab. |


## Related topics

- [Visão geral da API C de serviços - PFEventPipeline.h](/pt-BR/services/playfab/api-references/c/pfeventpipeline/pfeventpipeline_members.md)
- [Visão geral da API C de serviços - PFCore.h](/pt-BR/services/playfab/api-references/c/pfcore/pfcore_members.md)
- [Visão geral da API C de serviços - PFExperimentation.h](/pt-BR/services/playfab/api-references/c/pfexperimentation/pfexperimentation_members.md)
- [Visão geral da API C de serviços - PFPlatform.h](/pt-BR/services/playfab/api-references/c/pfplatform/pfplatform_members.md)
- [Visão geral da API C de serviços - PFTrace.h](/pt-BR/services/playfab/api-references/c/pftrace/pftrace_members.md)
