savingMobileStandalone

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
savingMobileStandalone <pTargetType>, <pAppBundle>
Associationsstack
Summary

Sent to the mainstack when a mobile standalone application is being saved or the simulation is started.

Introduced5.5.3
OSios, android
Platformsdesktop, server
Parameters
NameTypeDescription
pTargetType"simulator":
"device":
pAppBundle

A string variable containing the folder that the mobile standalone application was saved in.

Example
on savingMobileStandalone pTarget, pFolder
   repeat with X = 1 to the number of cards of this stack
      repeat with Y = 1 to the number of fields of card X of this stack
         if not the lockText of field Y of card X of this stack then
            put empty into field Y of card X of this stack
         end if
      end repeat
   end repeat
end savingMobileStandalone
RelatedMessage: mobileStandaloneSaved, savingStandalone, standaloneSaved
Description

When a mobile stack is saved as a standalone application it is removed from memory then reopened. This message is sent to the stack after it is reopened and therefore offers the opportunity to do a last modification of the stack before saving the mobile standalone.

Note: Modifications made when you handle this message are not saved in the original stack file. They are only seen in the standalone application. If you make changes to the stack in savingMobileStandalone that you want to appear in the built application, you must save the stack before returning from the handler. The mobile standalone builder uses the stack file as it is on disk after return from the message to build the app.