Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AppmethodCode SnippetComponentDelphiDemoFiremonkeyIOS

Configure The Settings.bundle For Your Delphi XE5 Firemonkey App On IOS

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE5 Firemonkey Settingsbundle for IOS | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSOn IOS devices there is a special Settings app that your Delphi XE5 Firemonkey application can take advantage of and provide settings for. Additionally, there is a component that can help you with doing that in the DPF for IOS component suite. The TDPFUserDefaults component will let you read the settings that are editable by the Settings app. You will also need to create a Settings.bundle file and places the settings in it that you need. Apple explains the format of the Settings.bundle over on their website. Basically users can edit settings for your app from within the Settings app and you can read those same settings from within your app. Babak Yaghoobi has a forum post over on Embarcadero’s Delphi forum which explains how to create the file and where to place it. There is a demo that comes with the free DPF for IOS suite showing the TDPFUserDefaults functionality.

procedure TFSettingsBundle.FormShow( Sender: TObject );
DPFSwitch1.ISON := DPFUserDefaults1.GetBooleanValue( 'Enabled_preference' );
DPFUserDefaults1.SetStringValue( 'version_preference', GetAppVersion );

Check out the demo of using a Settings.bundle and TDPFUserDefaults.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging


Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

Leave a Reply