coastline 0.0.4
Loading...
Searching...
No Matches
discordpresence.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4#include <string_view>
5
6namespace coastline {
7
10public:
18 explicit DiscordPresence(std::string_view applicationId);
25
33 void Update(std::string_view details, std::string_view state = {});
34
35private:
36 struct Worker;
38};
39
40} // namespace coastline
void Update(std::string_view details, std::string_view state={})
Publish the latest activity without waiting for Discord.
~DiscordPresence()
Stop the worker and close IPC before returning.
DiscordPresence(const DiscordPresence &)=delete
Prevent duplicate ownership of an IPC session.
DiscordPresence(std::string_view applicationId)
Start asynchronous IPC when support is compiled in and an application ID is supplied.
DiscordPresence & operator=(const DiscordPresence &)=delete
Prevent replacement of an active IPC session.
Definition assetimport.h:11