はじめに

ここでは、Corona SDK Resorces - API Reference の日本語での意訳を試みたものです。プロパティやメソッドの意味と、簡単なサンプルコードをまとめ、コピー&ペーストですぐに利用できるものを目指し、その結果のまとめにチャレンジしています。

また、Corona SDK では、言語にLuaを採用しております。Luaの文法等についての説明は、他のサイトに譲りますが、サンプルコードにはコメントを多く付記して、わかりやすいものを目指したいと思います。

Corona SDK API reference index

Corona SDK API のリファレンスのインデックスです。

ClassDescription
AnalyticsCorona分析サービス
analytics.init()分析サービスの初期化・設定
analytics.logEvent()分析サービスへイベントを通知
Animation
Easing
easing.inExpo( )?
easing.inOutExpo( )?
easing.inOutQuad( )?
easing.inQuad( )?
easing.linear ( )?
easing.outExpo( )?
easing.outExpo( )?
easing.outQuad( )?
Movieclips
movieclip.newAnim( )
object.nextFrame()?
object.stop()?
object:play()?
object:previousFrame()?
object:reverse()?
object:setDrag ( )?
object:setLabels( )?
object:stop()?
object:stopAtFrame( )?
Transitions
transition.cancel()?
transition.dissolve( )?
transition.from( )?
transition.to( )
Arrays
table.concat ()?
table.insert ()?
table.maxn()?
table.remove ()?
table.sort()?
Audio
audio.dispose()?
audio.fade()?
audio.fadeOut()?
audio.findFreeChannel()?
audio.freeChannels?
audio.getDuration()?
audio.getMaxVolume()?
audio.getMinVolume()?
audio.getVolume()?
audio.isChannelActive()?
audio.isChannelPaused()?
audio.isChannelPlaying()?
audio.loadSound()
audio.loadStream()?
audio.pause()?
audio.play()?
audio.reserveChannels()?
audio.reservedChannels?
audio.resume()?
audio.rewind()?
audio.seek()?
audio.setMaxVolume()?
audio.setMinVolume()?
audio.setVolume()?
audio.stop()?
audio.stopWithDelay()?
audio.totalChannels?
audio.unreservedFreeChannels?
audio.unreservedUsedChannels?
audio.usedChannels?
Basic Functions
_G?
assert()?
error()?
getfenv()?
getmetatable()?
ipairs()?
next()?
pairs()?
pcall()?
print()?
rawequal()?
rawget()?
rawset()?
select()?
setfenv()?
setmetatable ()?
tonumber ()?
tostring()?
type()?
unpack ()?
Crypto
crypto.digest()?
crypto.hmac()?
crypto.md4?
crypto.md5?
crypto.sha1?
crypto.sha224?
crypto.sha256?
crypto.sha384?
crypto.sha512?
Display Objects
Bitmap Mask
graphics.newMask( )?
Common Methods
object:addEventListener
object:contentToLocal()?
object:dispatchEvent( )?
object:getParent( )?
object:localToContent()?
object:removeEventListener( )?
object:removeSelf( )?
object:rotate( )?
object:scale( )?
object:setMask( )?
object:setReferencePoint( )?
object:toBack()?
object:toFront ( )?
object:translate( )?
Common Properties
object.alpha?
object.contentBounds?
object.contentHeight?
object.contentWidth?
object.height?
object.isHitTestable?
object.isVisible?
object.length?
object.maskRotation?
object.maskScaleX?
object.maskScaleY?
object.maskX?
object.maskY?
object.parent?
object.rotation
object.stageBounds?
object.stageHeight?
object.stageWidth?
object.width?
object.x?
object.xOrigin?
object.xReference?
object.xScale?
object.y?
object.yOrigin?
object.yReference?
object.yScale?
Content Size Properties
display.contentCenterX
display.contentCenterY?
display.contentHeight
display.contentScaleX?
display.contentScaleY?
display.contentWidth
display.screenOriginX?
display.screenOriginY?
display.statusBarHeight?
display.viewableContentHeight?
display.viewableContentWidth?
Factory Functions
display.loadRemoteImage( )?
display.newCircle()
display.newGroup()
display.newImage( )イメージファイルの表示
display.newImageRect()
display.newLine( )?
display.newRect()?
display.newRoundedRect()?
display.newText()テキスト文章の記述
Group Display Objects
group.numChildren?
group:insert( )
group:remove( )?
Other Display Functions
display.captureScreen( )?
display.getCurrentStage( )?
display.save( )?
display.setDefault ( )?
display.setStatusBar( )
Stage Display Objects
stage:setFocus( )?
Text Display Objects
object.size?
object.text?
object:setTextColor( )
Vector Display Objects
object.strokeWidth?
object:setFillColor( )?
object:setStrokeColor( )?
Events
memoryWarning (iOS)?
In-App Purchases
event.invalidProducts?
event.name?
event.products?
event.transaction?
accelerometer
event.isShake?
event.name?
event.xGravity?
event.xInstant?
event.yGravity?
event.yInstant?
event.zGravity?
event.zInstant?
audio
event.channel?
event.completed?
event.handle?
collision
event.phase?
completion
event.action?
event.index?
event.name?
event.target?
enterFrame
event.name?
event.time?
heading (compass)
event.geographic?
event.magnetic?
event.name?
location (GPS)
event.accuracy?
event.altitude?
event.direction?
event.errorCode?
event.errorMessage?
event.latitude?
event.longitude?
event.name?
event.speed?
event.time?
mapAddress
event.city?
event.cityDetail?
event.country?
event.countryCode?
event.isError?
event.postalCode?
event.region?
event.regionDetail?
event.street?
event.streetDetail?
orientation
event.delta?
event.name?
event.type?
postCollision
event.force?
event.friction?
event.object1?
event.object2?
event.other?
preCollision
event.other?
sprite
event.phase?
event.sprite?
system
event.name?
event.type?
timer
event.count?
event.name?
event.source?
event.time?
touch
event.id?
event.phase?
event.time?
event.x?
event.xStart?
event.y?
event.yStart?
urlRequest
event.errorCode?
event.errorMessage?
event.name?
event.url?
Facebook
facebook.login( )?
facebook.logout ( )?
facebook.request ( )?
facebook.showDialog ( )?
File I/O
Explicit file manipulation
file:close?
file:flush?
file:lines?
file:read?
file:seek?
file:setvbuf?
file:write?
Implicit file manipulation
io.close?
io.flush?
io.input?
io.lines?
io.open?
io.output?
io.read?
io.tmpfile?
io.type?
io.write?
In-App Purchases
store.canMakePurchases?
store.finishTransaction()?
store.init()?
store.loadProducts()?
store.purchase()?
store.restore()?
Maps
myMap.isLocationVisible?
myMap.isScrollEnabled?
myMap.isZoomEnabled?
myMap.mapType?
myMap:addMarker( )?
myMap:getAddressLocation()?
myMap:getUserLocation()?
myMap:removeAllMarkers()?
myMap:setCenter( )?
myMap:setRegion( )?
Math
math.abs()?
math.acos()?
math.asin()?
math.atan()?
math.atan2()?
math.ceil()?
math.cos()?
math.cosh()?
math.deg()?
math.exp()?
math.floor()?
math.fmod()?
math.frexp()?
math.inf?
math.ldexp()?
math.log()?
math.log10()?
math.max()?
math.min()?
math.modf()?
math.pi?
math.pow()?
math.rad()?
math.random()
math.randomseed()?
math.sin()?
math.sinh()?
math.sqrt()?
math.tan()?
math.tanh()?
Modules and Packages
module ()?
package.loaded?
package.loaders?
package.seeall ()?
require ()?
Multimedia
media.pauseSound()?
media.newRecording()?
media.newEventSound()?
media.getSoundVolume?
media.playEventSound()?
media.playSound()?
media.playVideo()?
media.setSoundVolume()?
media.show()?
media.stopSound()?
object:getSampleRate()?
object:getTunerFrequency()?
object:getTunerVolume()?
object:isRecording()?
object:setSampleRate?
object:startRecording()?
object:startTuner( )?
object:stopRecording()?
object:stopTuner()?
Native UI
native.cancelAlert()?
native.getFontNames()?
native.newFont()?
native.setActivityIndicator( )?
native.setKeyboardFocus()?
native.showAlert()?
Input Text Boxes
native.newTextBox()?
object.align?
object.font?
object.hasBackground?
object.size?
object.text?
object:setTextColor()?
Input Text Fields
native.newTextField()?
object.align?
object.font?
object.inputType?
object.isSecure?
object.size?
object.text?
object:setTextColor()?
Web Popups
native.cancelWebPopup()?
native.showWebPopup()?
Network
Asynchronous HTTP?
network.download( )?
network.request( )?
OpenFeint?
openfeint.downloadBlob ( )?
openfeint.init ( )?
openfeint.launchDashboard ( )?
openfeint.setHighScore( )?
openfeint.unlockAchievement ( )?
openfeint.uploadBlob ( )?
Operating System Facilities
os.clock()?
os.date()?
os.difftime()?
os.execute()?
os.exit()?
os.remove()?
os.rename()?
os.time()?
Physics
physics.addBody()
physics.newJoint( )?
Bodies
body.angularDamping?
body.angularVelocity?
body.bodyType?
body.isAwake?
body.isBodyActive?
body.isBullet?
body.isFixedRotation?
body.isSensor?
body.isSleepingAllowed?
body.linearDamping?
body:applyAngularImpulse( )?
body:applyForce( )?
body:applyLinearImpulse( )?
body:applyTorque( )?
body:getLinearVelocity( )?
body:resetMassData( )?
body:setLinearVelocity?
Joints
joint.dampingRatio?
joint.frequency?
joint.isLimitEnabled?
joint.isMotorEnabled?
joint.jointAngle?
joint.jointSpeed?
joint.jointTranslation?
joint.length?
joint.length1?
joint.length2?
joint.maxForce?
joint.maxMotorForce?
joint.maxMotorTorque?
joint.maxTorque?
joint.motorForce?
joint.motorSpeed?
joint.motorTorque?
joint:getAnchorA( )?
joint:getAnchorB( )?
joint:getLimits()?
joint:getReactionForce( )?
joint:getRotationLimits()?
joint:setLimits()?
joint:setRotationLimits()?
Sprite Sheets
sprite.add ( )?
sprite.newSprite( )?
sprite.newSpriteSet ( )?
sprite.newSpriteSheet ( )?
sprite.newSpriteSheetFromData()?
spriteInstance.animating?
spriteInstance.currentFrame?
spriteInstance.sequence?
spriteInstance:addEventListener( )?
spriteInstance:pause ( )?
spriteInstance:play ( )?
spriteInstance:prepare()?
spriteSheet:dispose ( )
Strings
string.byte?
string.char?
string.find?
string.format?
string.gmatch?
string.gsub?
string.len?
string.lower?
string.match?
string.rep?
string.reverse?
string.sub?
string.upper?
System
system.getInfo?
system.getPreference?
system.getTimer?
system.openURL?
system.orientation?
system.pathForFile?
system.setAccelerometerInterval?
system.setIdleTimer?
system.setLocationAccuracy?
system.setLocationThreshold?
system.vibrate?
Timer
timer.cancel()?
timer.performWithDelay()

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2011-02-26 (土) 01:16:28 (3010d)