Discord Social SDK
|
Options for creating a new Client instance.
This class may be used to set advanced initialization-time options on Client.
Static Public Attributes | |
static const ClientCreateOptions | nullobj |
Uninitialized instance of ClientCreateOptions. | |
|
noexcept |
Move constructor for ClientCreateOptions.
discordpp::ClientCreateOptions::ClientCreateOptions | ( | const ClientCreateOptions & | arg0 | ) |
Copy constructor for ClientCreateOptions.
std::string discordpp::ClientCreateOptions::ApiBase | ( | ) | const |
The base URL for the Discord API.
bool discordpp::ClientCreateOptions::ExperimentalAndroidPreventCommsForBluetooth | ( | ) | const |
Whether to prevent communications mode on Android when Bluetooth is connected.
This is an experimental API which may be removed or changed in a future release.
When set to true, the SDK will not enter communications mode when Bluetooth is connected. This setting is only meaningful on Android. It allows you to retain full quality stereo audio playback when in-call and avoids mixing issues caused by Bluetooth Absolute Volume, but will use the device microphone instead of the headset one.
discordpp::AudioSystem discordpp::ClientCreateOptions::ExperimentalAudioSystem | ( | ) | const |
The audio system to use. Defaults to AudioSystem::Standard.
This is an experimental API which may be removed or changed in a future release.
The game audio system alters the behavior of Discord Voice on mobile platforms to use standard media-type streams instead of voice-specific audio APIs when possible. Currently this will be used on iOS 18.2+ on devices which return true from -[AVAudioSession isEchoCancelledInputAvailable]
and on Android devices.
|
inline |
Returns true if the instance contains a valid object.
|
noexcept |
Move assignment operator for ClientCreateOptions.
ClientCreateOptions & discordpp::ClientCreateOptions::operator= | ( | const ClientCreateOptions & | arg0 | ) |
Copy assignment operator for ClientCreateOptions.
void discordpp::ClientCreateOptions::SetApiBase | ( | std::string | ApiBase | ) |
Setter for ClientCreateOptions::ApiBase.
void discordpp::ClientCreateOptions::SetExperimentalAndroidPreventCommsForBluetooth | ( | bool | ExperimentalAndroidPreventCommsForBluetooth | ) |
void discordpp::ClientCreateOptions::SetExperimentalAudioSystem | ( | discordpp::AudioSystem | ExperimentalAudioSystem | ) |
Setter for ClientCreateOptions::ExperimentalAudioSystem.
void discordpp::ClientCreateOptions::SetWebBase | ( | std::string | WebBase | ) |
Setter for ClientCreateOptions::WebBase.
std::string discordpp::ClientCreateOptions::WebBase | ( | ) | const |
The base URL for the Discord web application.
|
static |
Uninitialized instance of ClientCreateOptions.