HIVE SDK for C++

Classes | Typedefs | Enumerations | Functions
PlatformHelper

플랫폼 사용 편의를 위한 헬퍼 기능들의 모음 More...

Classes

class  PlatformHelper
 플랫폼에서 지원하는 기능을 제공하는 클래스이다. More...
 
class  InAppBrowserParam
 인앱 브라우저 설정을 위한 파라미터 More...
 
class  OpenBrowserParam
 외부 브라우저를 열기 위한 클래스 More...
 
class  InAppWebViewParam
 인앱 웹뷰 설정을 위한 파라미터 More...
 

Typedefs

typedef std::function< void(bool isSuccess)> PlatformHelper::onHIVEPlatformHelperShareHandler
 Share 관련 동작이 완료되었을 때 호출됨. More...
 
typedef std::function< void(ResultAPI const &result, std::vector< std::string > const &granted, std::vector< std::string > const &denied)> PlatformHelper::onRequestUserPermissionsHandler
 Android에서 재요청된 OS 권한동의에 대한 결과 값을 반환한다. More...
 

Enumerations

enum class  PlatformShareType { PlatformShareType::TEXT = 1 , PlatformShareType::MEDIA = 2 }
 Types of Platform share. More...
 
enum class  PlatformShareDataType { PlatformShareDataType::SUBJECT = 0 , PlatformShareDataType::TEXT , PlatformShareDataType::MEDIA }
 Types of Platform share data. More...
 

Functions

static void PlatformHelper::requestUserPermissions (std::vector< std::string > requests, onRequestUserPermissionsHandler handler)
 Android에서 사용자에게 OS 권한을 재요청. More...
 
static void PlatformHelper::openBrowser (const OpenBrowserParam param)
 Opens an external browser. More...
 

Detailed Description

플랫폼 사용 편의를 위한 헬퍼 기능들의 모음

Author
joosangkang

Typedef Documentation

◆ onHIVEPlatformHelperShareHandler

typedef std::function<void(bool isSuccess)> PlatformHelper::onHIVEPlatformHelperShareHandler

Share 관련 동작이 완료되었을 때 호출됨.

(shareText, shareMedia)

Parameters
isSuccessShare 결과.

◆ onRequestUserPermissionsHandler

typedef std::function<void(ResultAPI const & result, std::vector<std::string> const & granted, std::vector<std::string> const & denied)> PlatformHelper::onRequestUserPermissionsHandler

Android에서 재요청된 OS 권한동의에 대한 결과 값을 반환한다.

Parameters
granted사용자가 수락한 권한 리스트, denied 사용자가 거부한 권한 리스트

Enumeration Type Documentation

◆ PlatformShareDataType

enum class PlatformShareDataType
strong

Types of Platform share data.

Enumerator
SUBJECT 

Subject.

TEXT 

Text.

MEDIA 

Media.

◆ PlatformShareType

enum class PlatformShareType
strong

Types of Platform share.

Enumerator
TEXT 

Text.

MEDIA 

Media.

Function Documentation

◆ openBrowser()

static void PlatformHelper::openBrowser ( const OpenBrowserParam  param)
static

Opens an external browser.

Parameters
urlURL of the website to open
useIncognitoWhether to use incognito mode
Returns
None

◆ requestUserPermissions()

static void PlatformHelper::requestUserPermissions ( std::vector< std::string >  requests,
onRequestUserPermissionsHandler  handler 
)
static

Android에서 사용자에게 OS 권한을 재요청.

Parameters
requestsAndroid에서 요청할 권한들을 포함한 리스트.
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy