MessengerBot
  • Overview
  • API1
    • 작성 예정입니다.
  • API2
    • App
    • Bot
    • BotManager
    • Broadcast
    • Database
    • Event
    • Http
    • SessionManager
    • Security
  • 팁
    • ADB를 사용할 때
    • 소켓 통신
Powered by GitBook
On this page

Was this helpful?

  1. API2

App

메신저봇 앱의 컨텍스트를 얻어야 하거나, UI Thread 작업이 필요할 때 사용합니다.

Public methods

android.content.Context

getContext()

어플리케이션 Context를 반환합니다.

void

runOnUiThread(task: Function, onComplete: Function)

task를 UIThread에서 호출합니다. task가 끝나면, onComplete를 호출합니다.

onComplete에는 error:Throwable과 task의 반환값이 인자로 주어집니다.

Previous작성 예정입니다.NextBot

Last updated 4 years ago

Was this helpful?