Apple Newton Utilities Guia do Utilizador Página 644

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 942
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 643
CHAPTER 17
Additional System Services
17-28 Summary of Additional System Services
Functions and Methods 17
myApp:AlarmsEnabled() //call PeriodicAlarms?
myApp:PeriodicAlarms(
alarm
) //called when periodic alarm
//triggers
AddAlarm(alarmKey,time,argsArray,callBackFn,callBackParams) //adds
//an alarm
AlarmUser(title, message) //brings up slip
RemoveAlarm(alarmKey) //removes alarms
GetAlarm(alarmKey) //gets an alarm
GetAppAlarmKeys(alarmKeySuffix) //gets an app’s alarm keys
RemoveAppAlarms(alarmKeySuffix) //removes an app’s alarms
view:Notify(level, headerStr, messageStr) //brings up slip
Reporting Progress 17
Proto 17
aProtoStatusTemplate := { // report asynch task progress
_proto: protoStatusTemplate,
viewBounds : boundsFrame, //bounds of slip
initialSetup: frame, // initial setup values frame
ViewSet: func(setup), // update the view
UpdateIndicator: func(setup), // change progress indicator
CancelRequest: func(why), // called on cancel
...
}
Functions and Methods 17
contextView:SetMessage(msgText)// for user msgs in find slip
DoProgress(kind, options, workFunc) // for synchronous tasks
notifyIcon:AddAction(title, cbFn, args) //adds action to notify
//icon
notifyIcon:KillAction(obj) //removes action from notify icon
ShowBusyBox(showIt) //shows/hides busy box - Platform file
//function
Vista de página 643
1 2 ... 639 640 641 642 643 644 645 646 647 648 649 ... 941 942

Comentários a estes Manuais

Sem comentários