MDrawing Framework 에 대한 필수 API 를 정의
드로잉 관련 기능을 제공한다.
Changed in version 2.0.0
Arguments
Example:
M.drawing.create({
savePoint: 'APPINSIDE',
format: 'PNG',
orientation: 'DEFAULT',
callback: function(status, result) {
console.log( JSON.stringify( result ) );
}
});
// 메뉴를 버튼 타입으로 표현
M.drawing.create({
savePoint: 'APPINSIDE',
format: 'PNG',
uitype: 'BUTTON',
orientation: 'DEFAULT',
callback: function(status, result) {
console.log( JSON.stringify( result ) );
}
});
Changed in version 2.0.0
Arguments
Example:
M.drawing.open({
savePoint: 'APPINSIDE',
format: 'PNG',
orientation: 'DEFAULT',
callback: function(status, result) {
console.log( JSON.stringify( result ) );
}
});
// 메뉴를 버튼 타입으로 표현
M.drawing.open({
savePoint: 'APPINSIDE',
format: 'PNG',
orientation: 'DEFAULT',
uitype: 'BUTTON',
callback: function(status, result) {
console.log( JSON.stringify( result ) );
}
});
Type | Int | Description |
---|---|---|
APPINSIDE | 0 | 내부 저장소에 저장 |
APPOUTSIDE | 1 | 외부 저장소에 저장 |
Type | Int | Description |
---|---|---|
PNG | 0 | PNG 포맷 |
JPG | 1 | JPG 포맷 |
Type | Int | Description |
---|---|---|
DEFAULT | 0 | 기본 드로잉 화면 |
BUTTON | 1 | 버튼 구성 드로잉 화면 |
Type | Int | Description |
---|---|---|
DEFAULT | 0 | Manifest.xml 에서 설정한 orient 값 적용 |
PORTRAIT | 1 | 세로모드, 홈버튼이 아래인 세로 방향으로 회전 유지 |
PORT | 1 | PORTRAIT 을 축약 |
LANDSCAPE | 2 | 가로모드, 왼쪽 회전된 상태 유지 |
LAND | 2 | LANDSCAPE 를 축약 |
PORTRAIT|REVERSE | 3 | 세로모드, 세로 방향만 허용, 회전 가능 |
PORT|REVERSE | 3 | PORTRAIT 을 축약 |
PORTREV | 3 | PORTRAIT|REVERSE 를 축약 |
LANDSCAPE|REVERSE | 4 | 가로모드, 가로 방향만 허용, 회전 가능 |
LAND|REVERSE | 4 | LANDSCAPE 를 축약 |
LANDREV | 4 | LANDSCAPE|REVERSE 를 축약 |
ALL | 5 | 모든 방향으로 허용 |