HIVE SDK for Unity3D

Classes | Enumerations | Functions
SocialHive

@addgroup SocialHive More...

Classes

class  hive.SocialHive
 HIVE users can view and modify their profile information and provide a social game service where they can make friends and play games with their friends together. More...
 
class  hive.ProfileHive
 HIVE user profile information
More...
 
class  hive.MessageContent
 Message information. More...
 
class  hive.SocialBadge
 HIVE Social Badge information. More...
 

Enumerations

enum  hive.FriendType { hive.FriendType.IN_GAME , hive.FriendType.OUT_GAME , hive.FriendType.INVITED , hive.FriendType.ALL_GAME }
 Types of Friend list. More...
 
enum  hive.HiveDialogType {
  hive.HiveDialogType.HOME , hive.HiveDialogType.GAME , hive.HiveDialogType.USER , hive.HiveDialogType.INQUIRY ,
  hive.HiveDialogType.MESSAGE , hive.HiveDialogType.CHATBOT , hive.HiveDialogType.MYINQUIRY
}
 Types of HIVE Social WebView Dialog. More...
 
enum  hive.HiveRelationRoute {
  hive.HiveRelationRoute.DEFAULT , hive.HiveRelationRoute.HIVE , hive.HiveRelationRoute.FACEBOOK , hive.HiveRelationRoute.GAME ,
  hive.HiveRelationRoute.CONTACT
}
 HIVE The path form of friendship. More...
 

Functions

delegate void hive.SocialHive.onProfileHive (ResultAPI result, List< ProfileHive > profileList)
 Returns HIVE Profile / Friend Information.
 
delegate void hive.SocialHive.onSendMessageHive (ResultAPI result)
 Returns HIVE message transmission result.
 
delegate void hive.SocialHive.onShowHiveDialog (ResultAPI result)
 Returns showing HIVE Social dialog result.
 
delegate void hive.SocialHive.onSocialBadge (ResultAPI result, SocialBadge badge)
 HIVE Social Badge information.
 
static void hive.SocialHive.getMyProfile (onProfileHive listener)
 Request profile information of HIVE certified users.
 
static void hive.SocialHive.setMyProfile (String comment, onProfileHive listener)
 Set profile information of HIVE certified users.
 
static void hive.SocialHive.getProfiles (String[] vidList, onProfileHive listener)
 HIVE 사용자 정보를 조회한다.
 
static void hive.SocialHive.getFriends (FriendType friendType, onProfileHive listener)
 Request HIVE Profile / Friend Information In the form of friends, there are friends who play games together, friends who do not play games, friends who invite games, all friends, and these are defined by an enum called FriendType.
 
static void hive.SocialHive.sendMessage (MessageContent messageContent, onSendMessageHive listener)
 Send message to HIVE friend
If you send a message to a HIVE friend, a push notification will be sent to the recipient who has received the message.
 
static void hive.SocialHive.sendInvitationMessage (MessageContent messageContent, onSendMessageHive listener)
 Send a invite message to HIVE user.
 
static void hive.SocialHive.showHiveDialog (HiveDialogType hiveDialogType, String vid, onShowHiveDialog listener)
 Show HIVE WebView dialog
(- HIVE Social's default first screen (feed){@inheritDoc HiveDialogType::HOME}

 
static void hive.SocialHive.showHiveDialog (HiveDialogType hiveDialogType, String vid, String additionalInfo, onShowHiveDialog listener)
 Show HIVE WebView dialog
(- HIVE Social's default first screen (feed){@inheritDoc HiveDialogType::HOME}

 
static void hive.SocialHive.getBadgeInfo (onSocialBadge listener)
 Request HIVE Social Badge info.
 

Detailed Description

@addgroup SocialHive

Enumeration Type Documentation

◆ FriendType

Types of Friend list.

Enumerator
IN_GAME 

If you are playing a game and they are friends on HIVE.

OUT_GAME 

If you are not playing games, but they are friends on HIVE.

INVITED 

Friends invited by HIVE Social.

ALL_GAME 

All friends on HIVE.

◆ HiveDialogType

Types of HIVE Social WebView Dialog.

Enumerator
HOME 

Hive Social home.

GAME 

Hive Social game list.

USER 

Hive Social user profile.

INQUIRY 

Hive 1:1 Inquiry.

MESSAGE 

Hive Note. Only for Hive user.

CHATBOT 

Hive Chatbot 1:1 Inquiry.

MYINQUIRY 

Hive My Inquiry.

◆ HiveRelationRoute

HIVE The path form of friendship.

Enumerator
DEFAULT 

not set

HIVE 

Through HIVE Social.

FACEBOOK 

Through Facebook.

GAME 

Through Game.

CONTACT 

Through Contacts.

Function Documentation

◆ getBadgeInfo()

static void hive.SocialHive.getBadgeInfo ( onSocialBadge listener)
static

Request HIVE Social Badge info.

Parameters
listenerSocialBadgeListener HIVE SocialBadge info result listener

◆ getFriends()

static void hive.SocialHive.getFriends ( FriendType friendType,
onProfileHive listener )
static

Request HIVE Profile / Friend Information In the form of friends, there are friends who play games together, friends who do not play games, friends who invite games, all friends, and these are defined by an enum called FriendType.

Parameters
friendTypeTypes of Friend list
listenerAPI call result listener

◆ getMyProfile()

static void hive.SocialHive.getMyProfile ( onProfileHive listener)
static

Request profile information of HIVE certified users.

Parameters
listenerAPI call result listener

◆ getProfiles()

static void hive.SocialHive.getProfiles ( String[] vidList,
onProfileHive listener )
static

HIVE 사용자 정보를 조회한다.

Parameters
vidList조회하고자 하는 사용자의 VID 목록
listenerAPI 결과 통지

◆ onProfileHive()

delegate void hive.SocialHive.onProfileHive ( ResultAPI result,
List< ProfileHive > profileList )

Returns HIVE Profile / Friend Information.

Parameters
resultAPI call result
profileListHIVE user's profile list.

(If you ask for your profile, one result is returned, and if you ask for friends list, a list of friends is returned.)

◆ onSendMessageHive()

delegate void hive.SocialHive.onSendMessageHive ( ResultAPI result)

Returns HIVE message transmission result.

Parameters
resultAPI call result

◆ onShowHiveDialog()

delegate void hive.SocialHive.onShowHiveDialog ( ResultAPI result)

Returns showing HIVE Social dialog result.

Parameters
resultAPI call result

◆ onSocialBadge()

delegate void hive.SocialHive.onSocialBadge ( ResultAPI result,
SocialBadge badge )

HIVE Social Badge information.

Parameters
resultAPI call result
badgeHIVE-Social Badge information

◆ sendInvitationMessage()

static void hive.SocialHive.sendInvitationMessage ( MessageContent messageContent,
onSendMessageHive listener )
static

Send a invite message to HIVE user.

Parameters
messageContentInformation to send HIVE invite message
listenerAPI call result listener

◆ sendMessage()

static void hive.SocialHive.sendMessage ( MessageContent messageContent,
onSendMessageHive listener )
static

Send message to HIVE friend
If you send a message to a HIVE friend, a push notification will be sent to the recipient who has received the message.


The medium to which the push notification is sent is the same game as the game that the sender is using, or a game that has been used recently.
When the recipient receives the push notification and touches the message, the game is executed, so the UI that leads to the HIVE message should be included in the game.

Parameters
messageContentInformation to send HIVE message
listenerAPI call result listener

◆ setMyProfile()

static void hive.SocialHive.setMyProfile ( String comment,
onProfileHive listener )
static

Set profile information of HIVE certified users.

Parameters
displayNameMessage of user's status
listenerAPI call result listener

◆ showHiveDialog() [1/2]

static void hive.SocialHive.showHiveDialog ( HiveDialogType hiveDialogType,
String vid,
onShowHiveDialog listener )
static

Show HIVE WebView dialog
(- HIVE Social's default first screen (feed){@inheritDoc HiveDialogType::HOME}

  • Profile page{@inheritDoc HiveDialogType::USER}
  • Games{@inheritDoc HiveDialogType::GAME}
  • 1:1 Contact us {@inheritDoc HiveDialogType::INQUIRY})
  • HIVE Note. {@inheritDoc HiveDialogType::MESSAGE}
  • My Inquiry {@inheritDoc HiveDialogType::MYINQUIRY}
Parameters
hiveDialogTypeHiveDialogType Type of HIVE WebView Dialog
vidIf you go directly to your friend's profile page, set your friend's vid
listenerAPI call result listener

◆ showHiveDialog() [2/2]

static void hive.SocialHive.showHiveDialog ( HiveDialogType hiveDialogType,
String vid,
String additionalInfo,
onShowHiveDialog listener )
static

Show HIVE WebView dialog
(- HIVE Social's default first screen (feed){@inheritDoc HiveDialogType::HOME}

  • Profile page{@inheritDoc HiveDialogType::USER}
  • Games{@inheritDoc HiveDialogType::GAME}
  • 1:1 Contact us {@inheritDoc HiveDialogType::INQUIRY})
  • HIVE Note. {@inheritDoc HiveDialogType::MESSAGE}
  • Chatbot 1:1 Contact us {@inheritDoc HiveDialogType::CHATBOT})
  • My Inquiry {@inheritDoc HiveDialogType::MYINQUIRY}
Parameters
hiveDialogTypeHiveDialogType Type of HIVE WebView Dialog
vidIf you go directly to your friend's profile page, set your friend's vid
additionalInfoPromised String data (JSON format) when you want to open chatbot page directly
handlerAPI call result handler
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy