HIVE SDK for C++

HIVE_SocialV4.h
Go to the documentation of this file.
1
17#ifndef __HIVE_SOCIALV4_H__
18#define __HIVE_SOCIALV4_H__
19
20
21#include "HIVE_ResultAPI.h"
22
23
24NS_HIVE_BEGIN
25
26
27class ResultAPI;
28
29
38class HIVESDK_DLLEXPORT SocialV4
39{
40public:
41
42
43 enum class ProviderType {
44 HIVE = 1,
45 FACEBOOK
46 };
47
48 enum class ViewType {
49 FullScreen,
50 Frame
51 };
52
53
65 typedef std::function<void(ResultAPI const & result)> onShowCommunity;
66
67
79 typedef std::function<void(ResultAPI const & result)> onSharePhoto;
80
81
95 static void showCommunity(ProviderType providerType, onShowCommunity listener);
96
112 static void showCommunity(ProviderType providerType, ViewType viewType, onShowCommunity listener);
113
114
128 static void sharePhoto(ProviderType providerType, onSharePhoto listener);
129
130 // Native 영역에서 호출된 요청을 처리하기 위한 플러그인 내부 코드
131 static void executeEngine(picojson::value jsonParam);
132
133private:
134
135 static std::string stringProviderType(ProviderType providerType);
136 static std::string stringViewType(ViewType viewType);
137
138};
139
140
141NS_HIVE_END // namespace hive
142
143
144#endif // __HIVE_SOCIALV4_H__
145
146
Definition: HIVE_ResultAPI.h:63
Definition: HIVE_SocialV4.h:39
static void showCommunity(ProviderType providerType, ViewType viewType, onShowCommunity listener)
Request community page.
std::function< void(ResultAPI const &result)> onShowCommunity
Community page request result callback.
Definition: HIVE_SocialV4.h:65
static void sharePhoto(ProviderType providerType, onSharePhoto listener)
Photo Share API.
static void showCommunity(ProviderType providerType, onShowCommunity listener)
Request community page.
std::function< void(ResultAPI const &result)> onSharePhoto
Photo content sharing result callback.
Definition: HIVE_SocialV4.h:79
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy