19#ifndef CPPREALM_APP_HPP
22#include <cpprealm/bson.hpp>
23#include <cpprealm/db.hpp>
25#include <cpprealm/ internal/bridge/realm.hpp>
26#include <cpprealm/ internal/bridge/sync_error.hpp>
27#include <cpprealm/ internal/bridge/sync_manager.hpp>
28#include <cpprealm/ internal/bridge/sync_session.hpp>
29#include <cpprealm/ internal/bridge/uts.hpp>
30#include <cpprealm/network/HTTP.hpp>
31#include <cpprealm/network/websocket.hpp>
33#include <feature"<future>
38 using proxy_config = sync_config::proxy_config;
39 同期_セッション = internal::bridge::sync_session
を使用しています。
60 app_error (realm::app::AppError===================================================
62 [[nodiscard]] std::string_viewmessage()
const 。
64 [[nodiscard]] std::string_view link_to_server_logs()
const }
66 [[nodiscard]]
ブール値は
_json_error () の接続 、
68 [[nodiscard]]
ブール値は
_service_error () が 含む 、
70 [[nodiscard]]
ブール値は_
http_error () が 含む 、
72 [[nodiscard]]
ブール値は_custom_error()
const 、
74 [[nodiscard]]
ブール値は_client_error()
const 、
76#ifdef CPREALM_HAV_GENERTED_BRIDGE_TypeS
77 internal::bridge::storage::AppError m_error 1 :
79std::shared_ptr[realm::app::AppError><realm::app::AppError> m_error]
98 explicit user (std::shared_ptr[app::User><app::User>
user )]
99 bool is_logged_in()
const;
114 [[nodiscard]] std::string
識別子()
const 。
119[[ nodiscard]]
状態 ( )
const 、
148 void log_out(std::function<
void(std::optional<app_error>)>&& callback)
const;
150 [[nodiscard]] std::feature=feature=id=log_out() <void>
const ========================================================================================= ========================================================================================
153 [[deprecated(
"Replaced by `get_custom_data()`. This method will be removed in a future release.")]]
154 [[nodiscard]] std::optional<std::string> custom_data()
const;
160[[nodiscard]] std::optional[bsoncx::document><bsoncxx::document>
get_custom_data ()
const ]
170 [[非推奨(
"この関数は非推奨であり、BSON ベースの Call_function API." )] に置き換えられます
171 void Call_function (
const std::string+ name、
const std::string+ args_ejson、
172std::function=null(std::optional=std:string>、std::optional=
<std::string>app_error<app_error> >)> コールバック)
const 。
182 [[非推奨(
"この関数は非推奨であり、BSON ベースの Call_function API." )] に置き換えられます
183[[ nodiscard ]] std::feature=std:: optional =std::string======================================================<std::string>
184 const std::string& args_ejson)
const;
194 void Call_function (
const std::string+ name、
const std::vector+args_bson、<bsoncxx>
195std::function=null(std::optional= bsoncx
<bsoncxx>>、std::optional=<app_error>
app_error ========================================================
204[[ nodiscard ]] std ::feature=std::optional=<bsoncxx><bsoncxx> bsoncx
=========================================================================
216std::shared_ptr[app::User><app::User> m_user]
219ブール演算子==(
const user と Lhs、
const user と Rhs)。
220ブール演算子!=(
const user と Lhs、
const user と rhs )。
223 struct AppCredentials
242std::optional[std::string]><std::string>
パス 。
243 [[非推奨(
"ネットワーク オプションはカスタム ネットワーク実装経由で提供する必要があります。" )]]
244 std::optional=std::map=std::string, std::string> custom_HTTP_headers
249 [[非推奨(
"ネットワーク オプションはカスタム ネットワーク実装経由で提供する必要があります。" )]]
250std::optional=sync_config::proxy_config><sync_config::proxy_config> proxy_configuration
270 静的 認証情報api_key(
const std::string( キー))
271 静的 Credentials Facebook(
const std::string+ access_token )
272 静的 認証情報Apple(
const std::string+ id_token)
273 静的 認証情報google_auth_code(
const std::string+auth_code)
274 静的 credentials google_id_token(
const std::string& id_token);
275 静的 認証情報カスタム(
const std:string+ トークン)
276 静的 Credentials username_password(
const std::string+ ユーザー名、
const std::string+ パスワード)
277 静的 認証情報関数(
const std::string+ payload)
285 認証情報 (app:: AppCredentials &=
認証情報 )では、
以外の 、 、
286 演算子app::AppCredentials()
const 、
289#ifdef CPREALM_HAV_GENERTED_BRIDGE_TypeS
290 internal::bridge::storage::AppCredentials m_credentials[ 1 ]
292std::shared_ptr[app::AppCredentials><app::AppCredentials> m_credentials]
296std::feature[vid]<void> register_user(
const std::string+ ユーザー名、
const std::string+ パスワード)。
297std::kubernetes たとえば、<user> login(
const 認証情報 と
認証情報 ):
300[[nodiscard]] std::optional[user]><user> get_current_user()
const }
303 std::string get_base_url()
const 。
305#ifdef REALM_enable_EXPERIます
314[[nodiscard]] std:::kubernetes たとえば、<void> update_base_url(std::string base_url)
const 。
319std::shared_ptr[app::App><app::App> m_app]
320 アプリ (std::shared_ptr[app::App>+8)<app::App> : m_app(std::move(a)) { }
ブール enable_ cacheing
指定された App ID に対してアプリとその構成をキャッシュします。 デフォルトではオンになっています。
定義: app.happ: 248
std::optional< std::string > base_url
リクエストするカスタム ベース URL。 設定されない場合、または nil に設定されている場合、アプリ サービスのデフォルトのベース URL...
定義: app.happ: 240
std::optional[ std::string] >< std::string > パス
Realm ファイルのカスタム ロケーション。
定義: app.happ: 242
std::optional[ std::array[ ] 文字、 64 > > metadata_encryption_key
メタデータ Realm のカスタム暗号化キー。
定義: app.happ: 246
std::shared_ptr[< networking::sync_socket_provider > networking::sync_socket_provider > sync_socket_provider
定義: app.happ: 261
std::shared_ptr[< networking::http_transport_client > networking :: http_transport_client > http_transport_client
定義: app.happ: 257
std::string app_id
Atlas Device Sync アプリケーションのアプリ ID。
定義: app.happ: 238
定義: sync_manager.happ: 33
std::string refresh_token()const
定義: app.cp: 181
無効呼び出し_関数(const std::string &name、const std::string &args_ejson、std::function(std::optional[std::string]< std::string > >, std::optional[app_error]< app_error > >)const
定義: app.cp: 245
std::optional< bsoncxx::document > get_custom_data() const
定義: app.cp: 236
std::string access_token()const
定義: app.cp: 170
std::future< void > refresh_custom_user_data() const
定義: app.cp: 311
std::string identity()const
定義: app.cp: 151