javascript
javascript를 이용해 작업할수 있는 유용한 함수 모음
1.OnDeviceReady
<script>
document.addEventListener("onDeviceReady", function (e) {
if ((typeof window.MintApp) != 'undefined') {
}
})
</script>2.사용자 등록
MintApp.setUser(userId,name,email,desc,properties);
//실제 사용예
document.addEventListener("onDeviceReady", function (e) {
if ((typeof window.MintApp) != 'undefined') {
MintApp.setUser("1", "홍길동", "[email protected]", "사용자에 대한 설명입니다..", {
profile: "추가로 원하시는 프로퍼티를 넣을수 있습니다."
})
}
})
2.2 소셜 사용자 등록
3.사용자 로그아웃
4.토스트 메시지
5.이미지 뷰어
6.알림
7.진동알림
8.토픽 설정
9.토픽 해제
10.외부 브라우져 오픈
11.날짜 선택
12.연락처 저장
13.연락처 가져오기
14.화면 가로 세로 변환
15.qr 코드 가져오기
16.현재 위치 가져오기
17.리프레쉬 처리
18.share
19.문자 복사
20.share
21.Cache Clear
Last updated