![]() |
SkyWay Linux SDK
|
SkyWay全体の設定、取得を行うStaticなコンテキスト [詳解]
#include <context.hpp>
クラス | |
| class | EventListener |
| イベントリスナ [詳解] | |
静的公開メンバ関数 | |
| static bool | Setup (const std::string &token, std::unique_ptr< HttpClientInterface > http, std::unique_ptr< WebSocketClientFactoryInterface > ws_factory, std::unique_ptr< PlatformInfoDelegatorInterface > platform_info, std::unique_ptr< LoggerInterface > logger, EventListener *listener, const ContextOptions &options) |
| Contextを初期化します。 | |
| static bool | UpdateAuthToken (const std::string &token) |
| JWTを更新します。 | |
| static void | RegisterPlugin (std::unique_ptr< RemoteMemberPluginInterface > plugin) |
| RemoteMemberPluginを登録します。 | |
| static void | Dispose () |
| コンテキストを破棄し、全ての接続を切断します。 | |
SkyWay全体の設定、取得を行うStaticなコンテキスト
|
static |
コンテキストを破棄し、全ての接続を切断します。
Context::Setupを再度コールすることで利用可能になります。
|
static |
RemoteMemberPluginを登録します。
| plugin | RemoteMemberPlugin |
|
static |
Contextを初期化します。
libskywayを利用するためには必ずこのメソッドを最初にコールする必要があります。
| token | JWT形式のAuthトークン |
| http | Platformで実装したHttpクライアント |
| ws_factory | Platformで実装したWebSocketファクトリ |
| platform_info | Platformで実装したデバイス情報デリゲーター。nullptrを渡すとAnalyticsが無効になります。 |
| logger | Platformで実装したLoggerクラス |
| listener | イベントリスナ |
| options | オプション |
|
static |
JWTを更新します。
| token | JWT |