[한] SDK 시작 종료 - naver/cafe-sdk-unity GitHub Wiki
###SDK 시작/종료
- NAVER CAFE SDK를 시작/종료하기 위한 메소드에 대하여 기술합니다.
-- 1. StartHome
네이버카페SDK를 기본 탭(home)으로 실행
public void executeHome()
/**
* home 탭으로 시작.
*/
Glink.sharedInstance().executeHome()
-- 2. startNotice
네이버카페SDK를 공지 탭(notice)으로 실행
public void executeNotice()
/**
* notice 탭으로 시작.
*/
Glink.sharedInstance().executeNotice()
-- 3. startEvent
네이버카페SDK를 이벤트 탭(event)으로 실행
public void executeEvent()
/**
* event 탭으로 시작.
*/
Glink.sharedInstance().executeEvent()
-- 4. startMenu
네이버카페SDK를 메뉴 탭(menu)으로 실행
public void executeMenu()
/**
* menu 탭으로 시작.
*/
Glink.sharedInstance().executeMenu()
--
5. startMenu(특정 게시판)
제공예정
네이버카페SDK를 특정 게시판으로 실행
public void executeMenu(int menuId)
-- 6. startProfile
네이버카페SDK를 프로필 탭(profile)으로 실행
public static void executeProfile()
/**
* profile 탭으로 시작.
*/
Glink.sharedInstance().executeProfile()
-- 7. startArticle
네이버카페SDK를 특정 게시글로 실행
public void executeArticle(int articleId)
/**
* 특정 게시글로 바로 시작.
*/
Glink.sharedInstance().startArticle(121);
-- 8. startWrite
네이버카페SDK를 글쓰기 작성 화면으로 실행
public static void executeArticlePost(int menuId, string subject, string content)
/**
* 글쓰기 작성화면 시작.
*
* @param menuId 메뉴 아이디를 세팅하면, 해당 메뉴를 선택한 상태로 글쓰기 화면에 진입합니다. (설정하지 않을 경우 -1)
* @param subject 게시글 제목 (null이면 빈 제목으로 진입)
* @param content 본문 (null이면 빈 본문으로 진입)
*/
Glink.sharedInstance().executeArticlePost(1, "title", "content")
-- 9. startImageWrite
네이버카페SDK를 이미지 첨부 글쓰기 작성 화면으로 실행
public static void executeArticlePostWithImage(int menuId, string subject, string content, string filePath)
/**
* 글쓰기 작성화면 시작.
*
* @param menuId 메뉴 아이디를 세팅하면, 해당 메뉴를 선택한 상태로 글쓰기 화면에 진입합니다. (설정하지 않을 경우 -1)
* @param subject 게시글 제목 (null이면 빈 제목으로 진입)
* @param content 본문 (null이면 빈 본문으로 진입)
* @param filePath 유효한 경로이면 이미지를 첨부하여 글쓰기 화면에 진입합니다.
*/
Glink.sharedInstance().executeArticlePostWithImage(1, "title", "content", filePath)
-- 10. startVideoWrite
네이버카페SDK를 동영상 첨부 글쓰기 작성 화면으로 실행
public static void executeArticlePostWithVideo(int menuId, string subject, string content, string filePath)
/**
* 글쓰기 작성화면 시작.
*
* @param menuId 메뉴 아이디를 세팅하면, 해당 메뉴를 선택한 상태로 글쓰기 화면에 진입합니다. (설정하지 않을 경우 -1)
* @param subject 게시글 제목 (null이면 빈 제목으로 진입)
* @param content 본문 (null이면 빈 본문으로 진입)
* @param filePath 유효한 경로이면 동영상을 첨부하여 글쓰기 화면에 진입합니다.
*/
Glink.sharedInstance().startImageWrite(1, "title", "content", filePath)
안드로이드/iOS 용 native 메소드는 아래에서 확인하세요.