Jump to content
Sign in to follow this  
Yaroslav Brovin Trial English

Recommended Posts


Release date:

16 May 2020


~ Loss of backward compatibility:

  - Assets: Renamed TfgBitmapInfo.BitmapSource -> Source.
  - Assets: Renamed TfgBitmapInfo.TfgBitmapSource -> TfgSource.
  - Assets: The public constructor is moved from TfgAsset to protected section. 
  - Assets: GetAssetsNames returns TArray<TfgAssetName>, not a TArray<string>
  - Assets: Now the method of theme name normalization is a part of record helper of TfgThemeName.

* Assets manager:

  - Dynamical saving operative memory:

    - Added a new method TfgAsset.ReleaseFromMemory. It is responsible for unloading from memory,
      heavy data associated with the resource. For example, if you no longer use an image resource,
      then this method will allow you to unload the bitmap from memory, thereby freeing up RAM for the system.
    - Now the Assets Manager can automatically unload resources from memory that are no longer used.
      This is the responsibility of setting TfgAssetsManager.AutoreleaseOptions.Enabled, which is disabled by default.
    - If you want to prevent a asset from being unloaded from memory, you can do this via the new OnShouldReleaseFromMemoryEvent event.
    - Now the asset takes into account the number of active clients - those who directly use the resource. 
      All components automatically work in the "Acquire-Release" resource paradigm via the new TfgAsset.Acquire and TfgAsset.Release methods.
    - For dynamically added graphics assets in the runtime provided for the discharge of such resources on disk. 
      This is the responsibility of the following settings: TfgAssetsManager.AutoreleaseOptions.DumpTarget.
    - Added new demo sample: "Assets" -> "Images" -> "Releasing image from memory"

  - Fixed memory leaks, which may have occurred when the BitmapSet resource was physically deleted.
  - Added more xml-documentations.
  - General improvements in internal implementation that are not visible to the eye.

* New project wizard:

  - Added page for selecting a template for the new project. Two templates are currently available. Further the list will be expanded..

* TfgPageControl:

  - Added a new method TfgPageControl.GoToPage for animated tab selection based on the index.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Similar Content

    • By Yaroslav Brovin
      Download :
      Release d ate:
      23 July 2020
      * New phone dialer services is developed FGX.PhoneDialer: - Before calling, you must request the 'android.permission.CALL_PHONE' permission via TfgPermissionService. - If you would like to make a call, just invoke TfgPhoneDialer.Call('Phone number'). - New demo sample is added: "System services" -> "Phone call" * New types of TfgDialogs were implemented: - TfgDialogs.InputBox is for inputting one text value. - TfgDialogs.InputQuery is for inputting several text values. * Java-Delphi bridge: - New methods for string conversions were added String <-> JUri (JUriToString, StringToJUri). - Fixed a memory leak when using Java listeners that could cause the application to crash when closing in certain situations. * TfgCamera: - Fixed issue with taking photo on some android devices. - [Demo] CameraPhotoDemo cannot take photo https://forum.fgx-native.com/topic/327-demo-cameraphotodemo-cannot-take-photo/ * TfgEdit: - Displaying Color value in Object Inspector is fixed, now it shows name of default theme asset. * TfgDateEdit, TfgTimeEdit: - Fixed the margins of the date selection button in the designer. Now the component looks the same in the designer as it does on the device. * TfgListMenu: - Fixed a bug using TfgListMenu on 10.4 that caused the app to crash. * TfgPageControl: - PageControl Swipe does not work if.. https://forum.fgx-native.com/topic/342-%D0%BD%D0%B5-%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%B0%D0%B5%D1%82-pagecontrol-swipe-%D0%B5%D1%81%D0%BB%D0%B8/ * Assets manager: - Deleting the assets Manager is now safer. If the user forgot to delete forms instances when closing the app, this may cause problems deleting the FGX Native platform. Now, in this situation, it will print a message about this in the log. * New demo samples: - "Android Api" -> "Share service" - "System services" -> "Phone call" * System permissions service: - The new method TfgPermissionService.CheckPermissionOrRaise was added and designed to check the class invariant.
    • By Yaroslav Brovin
      Download :
      Release d ate:
      30 May 2020
      * Support for Android services: - The IDE has a new wizard for managing connected Android services. It's available via main menu "Project" -> "FGX Android Services" - You can add followed service kinds via Android service manager: 1. Android Service with native part in so-library written on Delphi. 2. Classical Android service without native part. - The Manager automatically writes all the necessary information about the service in the Android manifest. - Now you can use service projects written for FMX in FGX Native. However, only if they don't use FMX. - You can user Android API from RTL or from FGX Native. Both bridges are supported. - Android service can be created by the same way as for FMX: http://docwiki.embarcadero.com/RADStudio/Sydney/en/Creating_Android_Services - General information about Android services is available in official Android documentation: https://developer.android.com/guide/topics/fundamentals/services?hl=ru - Android services supports FGX Native core. So you can use Toasts, timers and other FGX Native features. * Improvement in Java-Delphi bridge: - The work of Java listeners has been slightly accelerated. - Full support for working in Android services. - Internal improvements. * Other general improvements: - Removed the dependency of the timer implementation on the FGX Native ctivity. Now the timer can be used in Android services. - Now the registration of platform core services in Android is based on whether it is an Android activity or an Android service. - The dependency on Android activity is removed from the implementation of timers. Timers can now be used in Android services. However, you need to keep in mind that in the services of the timers should not be used for long-term operation. Since Android is slow down timers, which leads to them falling asleep after a certain period of time.
    • By Yaroslav Brovin
      Дата релиза:
      30 мая 2020
      Список изменений:
      * Поддержка Андроид сервисов: - В IDE разработан новый мастер управления подключаемыми Android сервисами. Он доступен через главное меню "Project" -> "FGX Android Services" - Через менеджер можно добавить один из двух видов сервисов: 1. Сервис с нативной частью, написанной на делфи. 2. Классический сервис без нативной части. - Менеджер автоматически заносит всю необходимую информацию о сервисе в Android манифест. - Теперь в FGX Native можно использовать проекты сервисов, написанные для FMX. Однако, только если они не используют FMX. - Вы можете использовать Android API из RTL или FGX Native. Оба Java-Delphi моста поддерживаются. - Android сервис создается таким же образом, как и для FMX: http://docwiki.embarcadero.com/RADStudio/Sydney/en/Creating_Android_Services - Общая информация о Android сервисах доступа в официальной документации: https://developer.android.com/guide/topics/fundamentals/services?hl=ru - Android сервисы поддерживают ядро FGX Native. Это значит, что вы можете использовать в сервисах Toasts, таймеры и другие фичи FGX Native. * Улучшения в Java-Delphi мосту: - Немного ускорена работа Java-листенеров. - Полноценная поддержка работы в Android сервисах. - Внутренние улучшения. * Общие улучшения: - Убрана зависимость реализации таймера от Activity. Теперь таймер можно использовать в Android сервисах. - Теперь регистрация сервисов ядра платформы в Андроиде происходит с учетом это Android активность или Android сервис. - Из реализации таймеров убрана зависимость от Android активности. Теперь таймеры можно использовать в Android сервисах. Однако, нужно иметь в виду, что в сервисах таймеры не следует использовать для длительной работы. Так как Android успыляет таймеры, что приводит к их засыпанию через определенный промежуток времени.  
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...