Rise
The Vieneo Province
Loading...
Searching...
No Matches
discordpp::ClientCreateOptions Class Reference

Options for creating a new Client instance. More...

#include <discordpp.h>

Collaboration diagram for discordpp::ClientCreateOptions:
[legend]

Public Member Functions

 ClientCreateOptions (ClientCreateOptions &&other) noexcept
 Move constructor for ClientCreateOptions.
ClientCreateOptions & operator= (ClientCreateOptions &&other) noexcept
 Move assignment operator for ClientCreateOptions.
 operator bool () const
 Returns true if the instance contains a valid object.
 ClientCreateOptions (const ClientCreateOptions &arg0)
 Copy constructor for ClientCreateOptions.
ClientCreateOptions & operator= (const ClientCreateOptions &arg0)
 Copy assignment operator for ClientCreateOptions.
 ClientCreateOptions ()
std::string WebBase () const
 The base URL for the Discord web application.
void SetWebBase (std::string WebBase)
 Setter for ClientCreateOptions::WebBase.
std::string ApiBase () const
 The base URL for the Discord API.
void SetApiBase (std::string ApiBase)
 Setter for ClientCreateOptions::ApiBase.
discordpp::AudioSystem ExperimentalAudioSystem () const
 The audio system to use. Defaults to AudioSystem::Standard.
void SetExperimentalAudioSystem (discordpp::AudioSystem ExperimentalAudioSystem)
 Setter for ClientCreateOptions::ExperimentalAudioSystem.
bool ExperimentalAndroidPreventCommsForBluetooth () const
 Whether to prevent communications mode on Android when Bluetooth is connected.
void SetExperimentalAndroidPreventCommsForBluetooth (bool ExperimentalAndroidPreventCommsForBluetooth)
 Setter for ClientCreateOptions::ExperimentalAndroidPreventCommsForBluetooth.
std::optional< uint64_t > CpuAffinityMask () const
 CPU affinity mask hint for certain platforms. Depending on platform support, may or may not be ignored.
void SetCpuAffinityMask (std::optional< uint64_t > CpuAffinityMask)
 Setter for ClientCreateOptions::CpuAffinityMask.

Static Public Attributes

static const ClientCreateOptions nullobj
 Uninitialized instance of ClientCreateOptions.

Detailed Description

Options for creating a new Client instance.

This class may be used to set advanced initialization-time options on Client.

Definition at line 3326 of file discordpp.h.

Constructor & Destructor Documentation

◆ ClientCreateOptions() [1/3]

discordpp::ClientCreateOptions::ClientCreateOptions ( ClientCreateOptions && other)
noexcept

Move constructor for ClientCreateOptions.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClientCreateOptions() [2/3]

discordpp::ClientCreateOptions::ClientCreateOptions ( const ClientCreateOptions & arg0)

Copy constructor for ClientCreateOptions.

Here is the call graph for this function:

◆ ClientCreateOptions() [3/3]

discordpp::ClientCreateOptions::ClientCreateOptions ( )
explicit

Member Function Documentation

◆ ApiBase()

std::string discordpp::ClientCreateOptions::ApiBase ( ) const

The base URL for the Discord API.

Here is the caller graph for this function:

◆ CpuAffinityMask()

std::optional< uint64_t > discordpp::ClientCreateOptions::CpuAffinityMask ( ) const

CPU affinity mask hint for certain platforms. Depending on platform support, may or may not be ignored.

Here is the caller graph for this function:

◆ ExperimentalAndroidPreventCommsForBluetooth()

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.

Here is the caller graph for this function:

◆ ExperimentalAudioSystem()

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.

Here is the caller graph for this function:

◆ operator bool()

discordpp::ClientCreateOptions::operator bool ( ) const
inline

Returns true if the instance contains a valid object.

Definition at line 3347 of file discordpp.h.

◆ operator=() [1/2]

ClientCreateOptions & discordpp::ClientCreateOptions::operator= ( ClientCreateOptions && other)
noexcept

Move assignment operator for ClientCreateOptions.

Here is the call graph for this function:

◆ operator=() [2/2]

ClientCreateOptions & discordpp::ClientCreateOptions::operator= ( const ClientCreateOptions & arg0)

Copy assignment operator for ClientCreateOptions.

Here is the call graph for this function:

◆ SetApiBase()

void discordpp::ClientCreateOptions::SetApiBase ( std::string ApiBase)

Setter for ClientCreateOptions::ApiBase.

Here is the call graph for this function:

◆ SetCpuAffinityMask()

void discordpp::ClientCreateOptions::SetCpuAffinityMask ( std::optional< uint64_t > CpuAffinityMask)

Setter for ClientCreateOptions::CpuAffinityMask.

Here is the call graph for this function:

◆ SetExperimentalAndroidPreventCommsForBluetooth()

void discordpp::ClientCreateOptions::SetExperimentalAndroidPreventCommsForBluetooth ( bool ExperimentalAndroidPreventCommsForBluetooth)

Setter for ClientCreateOptions::ExperimentalAndroidPreventCommsForBluetooth.

Here is the call graph for this function:

◆ SetExperimentalAudioSystem()

void discordpp::ClientCreateOptions::SetExperimentalAudioSystem ( discordpp::AudioSystem ExperimentalAudioSystem)

Setter for ClientCreateOptions::ExperimentalAudioSystem.

Here is the call graph for this function:

◆ SetWebBase()

void discordpp::ClientCreateOptions::SetWebBase ( std::string WebBase)

Setter for ClientCreateOptions::WebBase.

Here is the call graph for this function:

◆ WebBase()

std::string discordpp::ClientCreateOptions::WebBase ( ) const

The base URL for the Discord web application.

Here is the caller graph for this function:

Member Data Documentation

◆ nullobj

const ClientCreateOptions discordpp::ClientCreateOptions::nullobj
static

Uninitialized instance of ClientCreateOptions.

Definition at line 3345 of file discordpp.h.


The documentation for this class was generated from the following file: