Sha256: 9cbeca20313861d1b8c1de8a93ca9c922c3f80fad5e637905d838366d6fe10a1
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
#pragma once #include "types.h" namespace discord { class ActivityManager final { public: ~ActivityManager() = default; Result RegisterCommand(char const* command); Result RegisterSteam(std::uint32_t steamId); void UpdateActivity(Activity const& activity, std::function<void(Result)> callback); void ClearActivity(std::function<void(Result)> callback); void SendRequestReply(UserId userId, ActivityJoinRequestReply reply, std::function<void(Result)> callback); void SendInvite(UserId userId, ActivityActionType type, char const* content, std::function<void(Result)> callback); void AcceptInvite(UserId userId, std::function<void(Result)> callback); Event<char const*> OnActivityJoin; Event<char const*> OnActivitySpectate; Event<User const&> OnActivityJoinRequest; Event<ActivityActionType, User const&, Activity const&> OnActivityInvite; private: friend class Core; ActivityManager() = default; ActivityManager(ActivityManager const& rhs) = delete; ActivityManager& operator=(ActivityManager const& rhs) = delete; ActivityManager(ActivityManager&& rhs) = delete; ActivityManager& operator=(ActivityManager&& rhs) = delete; IDiscordActivityManager* internal_; static IDiscordActivityEvents events_; }; } // namespace discord
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rdiscord_sdk-1.1.1 | third-party/include/activity_manager.h |
rdiscord_sdk-1.1.0 | third-party/include/activity_manager.h |