Topics List
Global and Activity Properties

Activity Properties
Optimizing Activity Properties for Enhanced User Interaction

Activity properties, on the other hand, are specific to individual screens or sections within the app, known as activities. These properties define the behavior, appearance, and functionality of each activity, allowing developers to customize how users interact with different parts of the app. They include settings for layout, navigation, animations, and other activity-specific features.
During design mode, you can assign the following properties to the activities inside your project:



  • name: The name of the activity.

  • fType: The type of the activity.

  • backColor_RGB: The RGB color of the background.

  • Scroll

    • scrollActive: Set to true to enable scrolling.

    • scrollWidth: The width of the scrollable area.

    • scrollHeight: The height of the scrollable area.

    • scrollFriction: The friction of the scroll.

    • horizontalScrollDisabled: Set to true to disable horizontal scrolling.

    • verticalScrollDisabled: Set to true to disable vertical scrolling.

    • scroll_isLocked: Set to true to lock scrolling.

    • scroll_isBounceEnabled: Set to true to enable bounce effect while scrolling.

    • scroll_touched: The function to execute when scrolling is touched.

    • scroll_moved: The function to execute when scrolling is moved.

    • scroll_released: The function to execute when scrolling is released.

    • scroll_bottom_limit: The function to execute when reaching the bottom limit of scrolling.

    • scroll_top_limit: The function to execute when reaching the top limit of scrolling.

    • scroll_left_limit: The function to execute when reaching the left limit of scrolling.

    • scroll_right_limit: The function to execute when reaching the right limit of scrolling.

  • Physics

    • requirePhysics: Set to true to require physics for the activity.

    • setGravity_x: The x-component of the gravity for the physics simulation.

    • setGravity_y: The y-component of the gravity for the physics simulation.

    • setScale: The scale of the physics simulation.

    • setDrawMode: The drawing mode for the physics simulation (normal, hybrid, debug).

    • setPositionIterations: The number of position iterations for the physics simulation.

    • setVelocityIterations: The number of velocity iterations for the physics simulation.

    • setContinuous: Set to true to enable continuous physics.

    • setAverageCollisionPositions: Set to true to enable average collision positions.

    • setReportCollisionsInContentCoordinates: Set to true to report collisions in content coordinates.

    • setDebugErrorsEnabled: Set to true to enable debug errors.

  • Sensors

    • multitouch: Set to true to enable multitouch.

    • accelerometer: The function to execute when accelerometer data is received.

    • accelerometer_interval: The interval for accelerometer updates.

    • gyroscope: The function to execute when gyroscope data is received.

    • heading: The function to execute when heading data is received.

    • key: The function to execute when key data is received.

    • location: The function to execute when location data is received.

  • Display Mode

    • statusBar: The status bar mode (HiddenStatusBar, DefaultStatusBar, TranslucentStatusBar, DarkStatusBar).

    • transition_time: The transition time for screen transitions.

    • transition_effect: The transition effect for screen transitions.

  • Functions

    • scene_beforeLoad: The function to execute before the scene is loaded.

    • scene_active: The function to execute when the scene is active.

    • scene_beforeUnload: The function to execute before the scene is unloaded.

    • scene_closed: The function to execute when the scene is closed.

    • scene_destroyed: The function to execute when the scene is destroyed.

  • Mouse and Keys

    • mouse_press: The function to execute when a mouse button is pressed.

    • key_press: The function to execute when a key is pressed.

    • back_key_press: The function to execute when the back key is pressed.

  • Global Collisions

    • pre_collision_function: The function to execute before a collision occurs.

    • collision_function: The function to execute during a collision.

    • post_collision_function: The function to execute after a collision occurs.

  • Admin Site

    • Admin_IP: The IP address of the admin site.

    • Dual_Home_Page: The dual home page setting.

    • Admin_Dashboard_Content: The content of the admin dashboard.

    • Background_Image: The background image of the admin site.

    • Exportar_Llave1: The export key 1 setting.

    • Exportar_Llave2: The export key 2 setting.

    • Cookie_Name: The name of the cookie.

    • Site_Logo: The logo of the site.

    • Email_Name_From: The email name from setting.

    • Email_Address_From: The email address from setting.

    • Email_Name_To: The email name to setting.

    • SMTP_Server: The SMTP server setting.

    • SMTP_Port: The SMTP port setting.

    • From_Email_Account: The from email account setting.

    • From_Email_Password: The from email password setting.