> ## 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.

# XGameUiShowStateShareAsync

> XGameUiShowStateShareAsync

# XGameUiShowStateShareAsync

*このメソッドは 2024 年 6 月版 GDK ではプレビューであることに注意してください。*

このメソッドは、共有される状態に関連するメタデータと、その状態を Web リンクまたは直接の招待として共有するための UX アフォーダンスを含む UI を表示します。

## 構文

```cpp theme={null}
HRESULT XGameUiShowStateShareAsync(
  XAsyncBlock * async,
  XUserHandle requestingUser,
  const char * linkToken
)
```

### パラメーター

*async*   \_In\_
Type: XAsyncBlock \*

[XAsyncRun](/reference/system/xasync/functions/xasyncrun) に渡される [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) へのポインター。

*requestingUser*   \_In\_\
Type: XUserHandle

招待を送信するユーザーへのハンドル。

*linkToken*   \_In\_z\_\
Type: const char \*

共有される状態を参照する linkToken。

## 解説

UI を使用して状態を共有するには、状態と対応するリンクを作成した後、タイトルは要求元ユーザーと、状態のリンク作成の一部として取得したリンク トークンを渡して [XGameUiShowStateShareAsync](/reference/system/xgameui/functions/xgameuishowstateshareasync) API を呼び出す必要があります。PlayFab を使用することは、状態とリンクを作成する 1 つの方法です。詳細については、Microsoft の担当者にお問い合わせください。

## 要件

**ヘッダー:** XGameUI.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、Steam Deck、XBOX One ファミリー本体および XBOX Series 本体

## 関連項目

[XGameUI メンバー](/reference/system/xgameui/xgameui_members)


## Related topics

- [XGameUiShowStateShareResult](/ja-jp/reference/system/xgameui/functions/xgameuishowstateshareresult.md)
- [XGameUI](/ja-jp/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowAchievementsAsync](/ja-jp/reference/system/xgameui/functions/xgameuishowachievementsasync.md)
- [XGameUiShowWebAuthenticationAsync](/ja-jp/reference/system/xgameui/functions/xgameuishowwebauthenticationasync.md)
- [XGameUiShowTextEntryAsync](/ja-jp/reference/system/xgameui/functions/xgameuishowtextentryasync.md)
