Quantcast
Channel: Firemonkey | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey, Delphi Android, Delphi IOS
Viewing all 97 articles
Browse latest View live

Full IOS 9.3 SDK Framework Files In Object Pascal With Firemonkey For #Delphi 10 Berlin

$
0
0
Delphi 10 Berlin Firemonkey IOS Framework Object Pascal Wrappers SDK

Delphi 10 Berlin Firemonkey IOS Framework Object Pascal Wrappers SDKDelphi 10 Berlin has a SdkTransform tool which creates Object Pascal header files for the IOS SDK. There is a GUI tool which wraps around the command line tool for generating the files. I went ahead and added all of the IOS 9.3 frameworks to Delphi 10 Berlin and then applied the SdkTransform tool to them. The resulting Object Pascal files have been added to a Github repository. This saves you from having to do it yourself but it also makes them searchable. You may find something in there you didn’t even know you were looking for. This is the full list of frameworks: AVFoundation, AVKit, Accelerate, Accounts, AdSupport, AddressBook, AddressBookUI, AssetsLibrary, AudioToolbox, AudioUnit, CFNetwork, CloudKit, Contacts, CoreAudio, CoreAudioKit, CoreBluetooth, CoreData, CoreFoundation, CoreGraphics, CoreImage, CoreLocation, CoreMIDI, CoreMedia, CoreMotion, CoreTelephony, CoreText, CoreVideo, EventKit, EventKitUI, ExternalAccessory, Foundation, GLKit, GSS, GameController, GameKit, HealthKit, HomeKit, IOKit, ImageIO, JavaScriptCore, LocalAuthentication, MapKit, MediaAccessibility, MediaPlayer, MediaToolbox, MessageUI, Metal, MobileCoreServices, MultipeerConnectivity, NetworkExtension, NewsstandKit, OpenAL, OpenGLES, PassKit, Photos, PhotosUI, PushKit, QuartzCore, QuickLook, SafariServices, SceneKit, Security, Social, SpriteKit, StoreKit, SystemConfiguration, Twitter, UIKit, VideoToolbox, WebKit, and iAd.

Obviously these are only for IOS but if you want the Android SDK headers in Object Pascal they are also on Github.

Head over and download all of the IOS 9.3 SDK frameworks in Object Pascal for Delphi 10 Berlin.


Access Microsoft API For Scanner Devices With Firemonkey In #Delphi 10 Berlin On Windows

$
0
0
Delphi Firemonkey Windows Scanner Component API

Delphi Firemonkey Windows Scanner Component APIDeveloper Erik Salaj from Winsoft has released a new image scanning component suite for Firemonkey in Delphi 10 Berlin. The new component suite wraps the Windows Image Acquisition API to allow you to easily access scanning devices in Windows and acquire images from them. Obviously it is only for Windows and not for Android, IOS, or OSX. You can scan using both an interactive interface or without an interface at all. It supports flip, rotate, crop, scale, stamp filters to modifying the scanned images. The supported image formats are BMP, PNG, GIF, JPEG and TIFF. This is a commercial component suite but full source code is provided and there is a demo application showing how to use the functionality. One interesting that I noticed is that it picked up my Android devices as possible scanner components in the demo. You can find out more information about Windows Image Acquisition over at Microsoft. The component suite should also work in C++Builder. Also be sure to check out the Winsoft Component Package which gets you this library and a huge number of other libraries at a significant savings.

Head over and download the Windows Image Acquisition Component Suite for Firemonkey in Delphi 10 Berlin.

Utility To Build And Tint Your Own Device Styles For Firemonkey In #Delphi 10 Berlin

$
0
0
Delphi 10 Berlin Firemonkey Style Theme Creator Utility

Delphi 10 Berlin Firemonkey Style Theme Creator UtilityDeveloper Aone Chen out of China has released utility for creating your own Firemonkey style theme. The utility is built in Firemonkey and allows you to preview the theme within it. The utility can load both style files and binary style files. The built in color adjuster within the utility allows you to create a new style for any of the platforms supported by FMX which are Android, IOS, OSX, and Windows. Once you create a new style you can apply the color filter and then save the style out for usage in your own app. The utility supports the various different screen resolution ratioswhich are listed as 1, 1.5, 2, and 3. The blog post about the utility is in Chinese so be sure to use a translator if you need more information about the utility. The utility is free but source code for it is not included. The style files should also work with C++Builder. Try this style utility with the Premium Styles too.

Head over and download the Firemonkey theme utility for Delphi 10 Berlin.

Mirror: Download the theme utility directly from this mirror.

Access FTDI, Prolific, USB, And Serial COM Ports With Firemonkey In Delphi 10 Berlin On Android And Windows

$
0
0
Delphi Firemonkey COM Port Component Serial USB Android

Delphi Firemonkey COM Port Component Serial USB AndroidDeveloper Erik Salaj over at WINSOFT has a whole suite of Com Port components for Firemonkey in Delphi and C++Builder. The various Com Port components give you access to the Com Port on Android, OSX, and Windows. It does not appear that there is any support for IOS though. You can communication with all kinds of different devices using the Com Port like printers, sensors, joysticks, and all kinds of Internet of Things devices. There are a number of different components for Com Port access on Android which include connecting via Serial, support for FTDI FT311D and FT312D devices, support for Prolific devices, USB connected devices including FT232R, CDC/ACM (Arduino Uno), CP2102 and CH34x chips, and even more USB Serial devices including CP210x, CP2130, CDC, FTDI, PL2303 and CH34x devices. The Windows and Mac OSX Com Port components are also available for standard serial port communication. I believe there is a Windows version for VCL and one for FMX. On the Windows side there is even support for Protocols 3964 and 3964R. WINSOFT is a third party library integration powerhouse with over 50 different third party libraries wrapped in easy to use Delphi and C++Builder components. The components are commercial but there are free trials available and come with full source code after purchase. Additionally, you can buy ALL of the components together at a very steep discount. The bottom line is if you need to connect to any type of serial device from Android, OSX, or Windows using Delphi or C++Builder you should check these components out because they can save you a lot of time. Accessing the Com Port becomes as easy as “ComPort.ReadAnsiString;” and “ComPort.WriteAnsiChar(AnsiChar(Key));”.

Check out ComPort for VCL in Delphi 10 Berlin.
Check out ComPort for Android with Firemonkey in Delphi 10 Berlin.
Check out ComPort for Android FTDI FT31xD with Firemonkey in Delphi 10 Berlin.
Check Out ComPort for Android Prolific with Firemonkey in Delphi 10 Berlin.
Check Out ComPort for Android USB with Firemonkey in Delphi 10 Berlin.
Check out ComPort for Android USB Serial with Firemonkey in Delphi 10 Berlin.
Check out ComPort for FireMonkey on Windows in Delphi 10 Berlin.
Check out ComPort for OS X in Firemonkey for Delphi 10 Berlin.

 

Native TMS mCL Component Suite Updated For Firemonkey In Delphi Berlin On OSX

$
0
0
tms__mcl_components

tms__mcl_componentsTMS Software has released a new version of their TMS mCL component suite for Delphi. TMS mCL is specifically for Mac OSX and does not include components for Android, IOS, or Windows. If you are already familiar with this awesome components set, will find many beneficial features to include in your apps. We mention just a few: TTMSFMXNativeNSOutlineView (can now be fully customized Column moving, resizing, Support for displaying images, Virtual mode), TMSFMXNativeNSImageView (which now includes Load image from URL and Face detection) and even more functionalities for the rest of the component set. We have to mention the newly added components which will improve your current apps, such as: TTMSFMXNativeMacPDFLib – let’s you create new and open existing PDF documents, merge PDF documents, set owner and user password have text flow in multiple columns, TTMSFMXNativeNSRichTextViewToolBar – a fully customizable toolbar component, TMSFMXNativeNSView – can be used as a container for other controls. If you have to include iCloud in your apps, the new TTMSFMXNativeMaciCloud gives you access to the iCloud key-value storage or capability to synchronize settings and data between iPod, iPhone, iPad and mac OS applications and TTMSFMXNativeMaciCloudDocument will give you access to document iCloud storage to add, delete and update documents. You can mix these components with FireMonkey controls on the same Delphi form. This is a commercial component suite that includes source code but a free trial is available.

Head over to check out the full list of features in the TMS mCL component suite for Delphi Berlin Firemonkey on Mac OSX.

Fantastic HTML Library Updated For Delphi Berlin Firemonkey On Android And IOS

$
0
0
html_components_update

html_components_updateDeveloper Alexander Sviridenkov has updated his HTML Component Library for Delphi Berlin, adding many functionalities and various optimizations. From the most important features added in this version (3.6), we have to mention: New powerful cross-platform scripting engine, Added support for CSS visibility, table-layout properties, Added more events to THtDocument component (ThtDocument.AfterImageLoaded, THtDocument.OnAnimationEnd and THtDocument.AfterControlCreated), Instant support for Font Awesome (Android and Web developers should be familiar with this nice set of icons), support for element sorting, improved HTML Report Library (Added report-objects element – create report objects inside report from SQL, expression or script, added Side-by-side bars chart, Area charts), new component introduced – THtReportPanel and many others. Also, the library was optimized by improving the parsing and compilation speed and making style calculations faster. New demo projects are available to test these awesome new features and improvements. One more important thing to mention, HTML Editor Library has now support for IOS and Android. This is a commercial library but there are demos for you to check out which work on Windows, Android, and Mac OSX. Additionally, there is a trial version which you can test yourself to see if it fits your needs.
Head over and check out the free trial of the HTML Component Library for Delphi Firemonkey on Android, IOS, OSX, and Windows.

Amazing Multimedia Instrument Components For Firemonkey In Delphi Berlin On Android And IOS

$
0
0
Delphi Berlin Firemonkey Instrument Package SVG Android IOS

Delphi Berlin Firemonkey Instrument Package SVG Android IOSRiverSoftAVG released an amazing multimedia add on package for their RiverSoftAVG SVG component library. This add on contains instrument multimedia components which are high quality, high resolution and easily customizable. This component library is available for Delphi Berlin on Windows, OSX, Android, IOS for both VCL and FMX. The suite contains over 15 gauges and gadgets, including clocks (TRSClock, TRSCircularClock, TRSDigitalClock), compasses (TRSCompass and TRSCircularCompass), batteries, speedometers, lights, an altimeter (TRSCircularAltimeter) and a barometer (TRSCircularBarometer). For the developers who are interested in the library architecture, the full source code is provided, the components are resolution independent with a small footprint for your applications and no other external files are required. When it comes to implementation, the library provides the developer integrated IDE Help Insight as well as Help File and Online Documentation. Please note, that in order to use these amazing components, you are required to install RiverSoftAVG SVG Component Library or buy IMPACT as a bundle with the SVG library. Demos are provided, with no limitations to test the full features of the library. When demos not running within the IDE, a nag screen will be displayed. Apart from the multimedia package, RiverSofAVG library also contains some very useful components like: Inference Engine Component Suite, Fuzzy Logic Component Library, Genetic Algorithms & Programming Component Library, very handy when you have projects dealing with Artificial Intelligence. RiverSoftAVG is a commercial package has a decent cost to it but the site license is much more expensive. Additionally, you have the option to buy the components individually or to buy them for a certain IDE. This last option is much cheaper and tailored to everyone’s needs.

Head over to check out the amazing RiverSoftAVG IMPACT available for Delphi Berlin (Win32/Win64/OSX/iOS/Android).

Realistic Custom Shaders With HLSL In Direct3D With Delphi 10 Berlin FireMonkey On Windows

$
0
0
Delphi 10 Berlin Firemonkey Windows Shaders Direct3D HLSL

Delphi 10 Berlin Firemonkey Windows Shaders Direct3D HLSLDeveloper Masanori Nakayama has a project over on Github which demonstrates how to use Direct3D HLSL shaders from Delphi 10 Berlin Firemonkey. You can check out the available source code for create amazing light effects for any kind of texture/material you may want to use in your own applications. Be sure to check out the included video to see it in action. The project uses Direct3D so it is for Windows only and doesn’t support Android, IOS, or OSX (where OpenGL is available). To achieve spectacular light effects, the project implemented the specular reflection/refraction effects using the Fresnel equations and the bumpy surface using the normal-mapping. For those of you who love Mathematics, Fresnel equations are used to calculate the specular reflection which is a mirror-like reflection of light from a surface, in which light from a single incoming direction is reflected into a single outgoing direction. To put it simply, when light hits a surface, there are three possible outcomes. Light may be absorbed by the material, light may be transmitted through to the other side, or light may be reflected back. In real world, there is a mixture of these outcomes. Same effects are achieved by modeling the Fresnel equations and the library can create custom shaders in HLSL on Direct3D. HLSL refers to high-level shading language, developed by Microsoft, a language used to build programmable shaders used in Direct3D (DirectX). HLSL is first introduced in Direct3D 9, and then also continued enhancements with Direct3D. HLSL shaders have high performance and are used in special effects in both 3D and 2D graphics. HLSL programs come in five forms: pixel shaders, vertex shaders, geometry shaders, compute shaders and tessellation shaders. I’m sure you are already familiar with the shader technology and the fact that these kind of shaders are used for creating gaming graphics. Using this library, you can access HLSL shader API and use it in your own applications to create amazing graphics and light effects. 

Head over to check out how you can create custom shaders in HLSL on Direct3D for Delphi Berlin and Firemonkey

 


Easily Handle Intent Callbacks In FireMonkey With Delphi 10 Berlin On Android

$
0
0
Delphi 10 Berlin Android Callback Firemonkey Intent Java

Delphi 10 Berlin Android Callback Firemonkey Intent JavaBrian Long has a new blog post up which explains handling Android callbacks with Firemonkey in Delphi 10 Berlin. If you are doing Android programming, you are surely familiar with the callback system that handles either the events from an intent filter or passing of data between Activities. Obviously this is only for Android and not IOS, OSX, or Windows. In previous versions (Delphi XE5, XE6 and XE7), you had to deal with custom Java code, custom activity sub-classing and other boilerplate code. But with the new Delphi Berlin, the callbacks are picked up by the FireMonkey activity’s onNewIntent method and sent into the RTL cross-platform messaging system. You can write your own code to process the new intents. This intent messaging is done via an additional use of the Android-specific TMessageReceivedNotification message (these messages contain an instance of JIntent then wraps and Android intent). It is IFMXApplicationService, that provides cross-platform access to event notifications so that you do not need to use a different, platform-specific event system on each platform that your application targets. When IFMXApplicationService receives an event notification from the operating system, it generates a message object (TMessage or one of its descendants) to provide the event data. The message object contains read-only information about the event that occurred. Thus, with Delphi Berlin it is now simpler to handle the intents received from hardware (camera, bar-code scanner, or any other device), no boilerplate code, easier debugging.

Head over and read the full blog post from Brian about Android callbacks for FireMonkey with Delphi 10 Berlin.

Very Customizable ListView Control For Firemonkey In Delphi 10 Berlin On Android And IOS

$
0
0
Delphi 10 Berlin Firemonkey Custom Listview Component Android IOS

Delphi 10 Berlin Firemonkey Custom Listview Component Android IOSDeveloper rzaripov1990 has a custom ListView component over on Github for Firemonkey in Delphi 10 Berlin. The ListView is the central component for every mobile application, and as a developer you should always choose the one that can be heavily customizable and very easy to use/implement. This modern ListView component is available for Delphi 10 Berlin with FireMonkey on Android, IOS, OSX, and Windows. One nice feature is that it has both horizontal and vertical mode. Thus, using ListView.Horizontal := true, enables the list to display the cells (items) in a horizontal perspective, while ListView.AutoColumns := true (default behaviour) displays the items vertically. If you are an artist when designing your look and feel of the application, this component can customize every graphic aspect such as: SetColorItemSelected, SetColorItemFill, SetColorBackground, SetColorItemSeparator, SetColorText, SetColorTextSelected, SetColorTextDetail, SetColorHeader, SetColorTextHeader, and many other properties. The properties are self-explanatory, no need to cover them here. With the AutoColumns and ColumnWidth properties, the component will automatically calculate the best fit appearance and position for the items when populating the list (very useful when dealing with large number of items). Apart form the standard behavior events, you have OnColumnClick listener for the ListView. You also have the option to hide/show the scroll bars (ListView.ShowScrollBar), set indent for items separators (ListView.SeparatorLeftOffset and ListView.SeparatorRightOffset). The component is free and has some nice demos with it as well. For the moment it is available only for Delphi Berlin and FireMonkey, very useful if you build multi-device applications.

Head over to check out this amazing ListView component available for Delphi Berlin and FireMonkey.

High Performance Component Suite For Firemonkey In Delphi 10 Berlin On Android And IOS

$
0
0
Delphi 10 Berlin Table View Chat View Slide Menu Firemonkey Android IOS

Delphi 10 Berlin Table View Chat View Slide Menu Firemonkey Android IOSDeveloper gmurt with Kernow Software released an update for its custom FMX component suite over on Github. At the core, there are the ListView and Slide-Menu, two powerful components which have a large palette of uses in your applications. You can use these components on Android, IOS, OSX, and Windows. The component suite comprises: TksTableView, TksSlideMenu, TksSegmentButtons, TksTabControl, TksNetHttpClient, TksTileMenu, TksChatView, TksSpeedButton. TksTableView is useful when displaying grid like information (think of TStringGrid components from Delphi) and the performance is quite staggering regardless of the number of text/items/graphics added. Supports various embedded components like switches, buttons and segment buttons, can be used as a check list or multi check list. Also, it supports image cropping (square, round rect or circle), indicators and “sticky” headers. TksSlideMenu, apart form standard properties, has fading background effect and bitmap caching for optimized performance, also it inherits from non-visual TComponent for quick integration into existing projects. TksSegmentButtons supports IOS style badges. For those of you who need a powerful HttpClient, TksNetHttpClient is the right solution enhanced with an ASync Get method. If you are in need of building a fast chat module for you application, you can always use TksChatView with IOS style. Components can be used in Delphi 10 Berlin with FireMonkey. Sample implementations for each component are provided, for both Delphi and IOS to ease the development time. All the component suite can be easily integrated in your applications at no costs as they are available on Github.

Head over to check out the high-performance component suite available for Delphi 10 Berlin and FireMonkey.

Edit And View PDFs With PDFium For Firemonkey In Delphi Berlin On Android And IOS

$
0
0
Delphi 10 Berlin Firemonkey PDF Edit View Android IOS OSX Windows

Delphi 10 Berlin Firemonkey PDF Edit View Android IOS OSX WindowsDeveloper WinSoft has released an updated version of the powerful PDFium component suite for managing PDF documents and it is now available for Firemonkey in Delphi 10 Berlin. With these components you can build applications that can view and edit PDF documents and extract text from PDF files using a straightforward and easy integration. At the core of this component suite lies the PDFium open source PDF rendering engine. The components are available for C++ Builder fans as well as supporting various platforms: Windows 32/64, OS X, IOS and Android. If you want to develop applications for Android, you have to deploy libapdfium.so file to library\lib\armeabi-v7a\. It is a commercial component suite. For those who want to study the code, the full source for the components is provided but only in the full version. If you want to try out this library demos for Delphi, FireMonkey, OS X and Android are ready for you to download. Also, once you purchase the library, you can use it freely in your applications at no other costs.

Head over and download the demos to check out the PDFium component suite available for Delphi Berlin, FireMonkey, IOS X and Android

DirectShow API Camera Library For FireMonkey In Delphi 10.1 Berlin On Windows

$
0
0
Delphi 10 Berlin Camera Windows 10 Firemonkey DirectShow

cameralibraryDeveloper WinSoft has released an updated version of their Windows camera library for FireMonkey in Delphi 10.1 Berlin. This library allows you full access to camera devices connected to your Windows machine giving you a variety of camera related options in your app. The are separate libraries for Android, IOS, and OSX as this is Windows only. You can now build awesome applications with the camera (perform high-quality recordings, audio and video playback and capture). The library is also available for C++ Builder developers as well as for Windows 32 and Windows 64. At the core of this library lies the DirectShow 9 API which uses media-streaming architecture powered by Microsoft Windows. It gives you the possibility to perform various operations such as: high-quality video and audio playback or capture. No other files are required to deploy with your applications. For those who want to study the code, the full source for the library is provided but only in the full version. If you want to try out this library demos for Delphi and FireMonkey are ready for you to download. Also, once you purchase the library, you can use it freely in your applications at no other costs.

Head over and check out the free trial and demos of the Camera library for Delphi 10 Berlin and FireMonkey.

Access Human Interface Devices Via USB For FireMonkey In Delphi 10 Berlin On Windows And OSX

$
0
0
Delphi 10 Berlin HID Component Library Firemonkey Windows OSX

Delphi 10 Berlin HID Component Library Firemonkey Windows OSXDeveloper WinSoft has released a powerful library for HID devices that is now available for FireMonkey in Delphi 10 Berlin. HID devices (human interface device) represent the computer peripherals as you all know as hardware devices. HID defines a whole class of devices such as: mice, game controllers and alphanumeric display, basically all the devices that receive an input from the user and through which the user can communicate with the computer. Thus, with this awesome library you can interface with USB devices and Bluetooth as well. At library core, there is HIDAPI library, which facilitates this communication. It is very easy to integrate (just one source file required) and on Windows it can be built under a DLL file. The HID library supports Windows 32, Windows 64 and OS X. It does not support Android or IOS. It is also available for C++ Builder fans. For those who want to study the code, the full source for the library is provided but only in the full version. If you want to try out this library demos for Delphi and FireMonkey are ready for you to download. Also, once you purchase the library, you can use it freely in your applications at no other costs. With this library, you have all the cross-platform USB support you will need to build a great app.

Head over and check out the free trial and demos of the USB HID wrapper component for Delphi 10 Berlin and FireMonkey.

Change The StatusBar Color Property For FireMonkey In Delphi 10 Berlin On Android

$
0
0
Delphi 10 Berlin Status Bar Color Android JNI Java API

statusbarcolorDeveloper ZuBy has made some demo code available for changing the StatusBar color on Android in your apps. The status bar is the bar at the top of your device with the various icons and other information in it. In a Java based Android app to change StatusBar color you can do it either by modifying the styles.xml file and adding the following line: <item name=”android:statusBarColor”>@color/color_primary</item> or by changing at runtime (implementations may differ) through code using window.setStatusBarColor(activity.getResources().getColor(R.color.my_statusbar_color)). However, in FireMonkey you must use the JNI (Java Native Interface). JNI enables Java code running in a Java Virtual Machine (JVM) to call and be called by native applications (programs specific to a hardware and operating system platform) and libraries written in other languages. Thus, you can call JNI Java code from Delphi 10 Berlin with FireMonkey and make the necessary changes. In order to make use of this change, make sure you are using Android 5 (Lollipop) and above. This code does not apply to Windows, IOS, or OSX. Notice that the code bellow is very similar to the Java implementation on Android.

procedure StatusBarSetColor(const aColor: TAlphaColor);
{$IFDEF ANDROID}
var
  Window: JWindowExt;
{$ENDIF}
begin
{$IFDEF ANDROID}
  CallInUIThread(
    procedure
    begin
      if TOSVersion.Check(5, 0) then
      begin
        Window := GetWindowExt;
        Window.addFlags(TJWindowManager_LayoutParams.JavaClass.FLAG_TRANSLUCENT_STATUS);
        Window.addFlags(TJWindowManager_LayoutParamsExt.JavaClass.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);

        Window.setFlags(TJWindowManager_LayoutParams.JavaClass.FLAG_TRANSLUCENT_STATUS,
          TJWindowManager_LayoutParams.JavaClass.FLAG_TRANSLUCENT_STATUS);
        Window.setFlags(TJWindowManager_LayoutParamsExt.JavaClass.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS,
          TJWindowManager_LayoutParamsExt.JavaClass.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);

        Window.setStatusBarColor(TJcolor.JavaClass.TRANSPARENT); );
      end;
    end);
{$ENDIF}
{$IFDEF IOS}
  SetStatusBarBackgroundColor(aColor);
{$ENDIF}
end;

Head over to checkout the full demo on how to change the StatusBar color in Delphi 10 Berlin with FireMonkey


Computer Vision OCR And Analysis Cloud Pack For FireMonkey In Delphi 10 Berlin On Android And IOS

$
0
0
Delphi Berlin OCR Image Analysis Bing API FireMonkey Android IOS

Delphi Berlin OCR Image Analysis Bing API FireMonkey Android IOSDeveloper TMS Software released an update for their nice Cloud Services component suite for Delphi Berlin and FireMonkey with two new additions: TTMSFMXCloudMSComputerVision and TTMSFMXCloudMSBingSpeech. Among the other Cloud Services, the developer can access Google Services (Calendar, Contacts, Drive, Mail, Photos etc.), Social media services (Facebook, Twitter, LinkedIn, YouTube etc.) and payment services (PayPal). The TTMSFMXCloudMSComputerVision uses Microsoft Computer Vision powerful algorithms to analyze information about the visual content found in an image. You can categorize and analyze many types of images starting with facial recognition, reading text in images, license plate recognition to even real time video analysis and much more. The TTMSFMXCloudMSBingSpeech helps you speech read a text, which is a very useful feature for visual impaired people and in combination with image content analysis to offer them a real image of the world. The implementation of these two components is straightforward and it takes less than 15 minutes. Use TTask component to avoid blocking the main application thread. In order to use them in your applications, you have to register to with Microsoft Cognitive Services in order to get an Api key. If you use the free plan, Microsoft offers you 5,000 transactions per month. If you require more for your business, choose the standard paid plan. You should be able to use these components across Android, IOS, OSX, and Windows. The components are licensed and you have to buy them in order to use them in your applications, single license being the most convenient option. If you want to first test the performance and results, free demos are provided and you can download them.

Head over and check out the free trial and demos for TMS FMX Cloud Pack for Delphi 10 Berlin and Firemonkey.

Medical Digital Imaging Component For FireMonkey In Delphi 10 Berlin On Android And IOS

$
0
0
dicom_component

Delphi FireMonkey DICOM Component For Android IOSDeveloper MedicalEffect  has a DICOM component now available for FireMonkey in Delphi 10 Berlin which gives you the possibility to build powerful medical applications. DICOM (Digital Imaging and Communications in Medicine) is a standard for handling, storing, printing, and transmitting information in medical imaging. It includes a file format definition and a network communications protocol. The component is written in Object Pascal, no other files or libraries are required to deploy with your application and it follows the latest DICOM standard (DICOM 3.5). It supports Windows, OS X, Android and IOS and it comes with an integrated DICOM viewer and communication interface. The component is not free, various licensing options are available: from single developer license (the cheapest and most convenient) to site license with source code. After purchasing, you can include this component in your applications at no other costs. Free trial version is available and it includes demos for all platforms (DICOM viewer, DICOM server). Also, it has DIMSE-C (PACS/DICOM Server) in case you have many medical devices and you require a centralized solution to manage them all. Also it has up to date documentation and manual which gives you easy and fast integration.

Head over to check out the full features of this component for FireMonkey in Delphi 10 Berlin.

Allow Apps To Run In Background Under FireMonkey In Delphi 10 Berlin On IOS

$
0
0
Delphi 10 Berlin IOS Background App FireMonkey

Delphi 10 Berlin IOS Background App FireMonkeyDeveloper David Nottage proposes a nice solution to keeping your applications to run in the background on iOS. On iOS as well as on Android, it is the system that decides when to terminate an app for very specific reasons (i.e. memory starvation). For this particular reason, the onClose event of the app might not trigger, since the system decides to immediately kill the application. Thus, you should never place important code in this event, since it will not execute and even worse you could cause memory leaks if you try to free the memory in the onClose event and this event is not fired. Suspended applications receive no notification when they are terminated unlike the applications that run in the background and are not in the suspended state. In this case, the system calls applicationWillTerminate before the actual onClose event. In Delphi, in the case of UIApplication, two important methods have been left out:

function beginBackgroundTaskWithExpirationHandler(handler: TBackgroundTaskHandler): UIBackgroundTaskIdentifier; cdecl;
procedure endBackgroundTask(identifier: UIBackgroundTaskIdentifier); cdecl;

The demo, wraps the two methods and provides easy and convenient integration. The implementation applies to Delphi 10 Berlin with FireMonkey. Here is a small sample of the demo implementation, just to give an idea and stir your interest to study it in more detail. This method is not related to UIBackgroundModes.

function TBackgroundTaskManager.Start: Boolean;
begin
  FTaskID := SharedApplication.beginBackgroundTaskWithExpirationHandler(DoExpiry);
  Result := IsValidTask;
end;

procedure TBackgroundTaskManager.Stop;
begin
  if IsValidTask then
    SharedApplication.endBackgroundTask(FTaskID);
  Reset;
end;

Head over and check out the demo for IOS Background Applications for Delphi Berlin with FireMonkey.

Mirror: Download the background IOS demo for Delphi 10 Berlin.

Learn To Use The Location Sensor In The Background With FireMonkey In Delphi 10 Berlin On IOS

$
0
0
location_sensor_ios

location_sensor_iosDeveloper David Nottage proposes an interesting solution to a problem some of you might have noticed on FireMonkey when switching to iOS 9 or higher, in particular the Location Sensor stops working when the application is in background. The reason behind this behavior is that Apple introduced a new required property – allowBackgroundLocationUpdates to be set on CLLocationManager. Also you have to include location UIBackgroundModes in the project options. In order for the Location Sensor to work in the background you have to always pass True to requestWhenInUseAuthorization method. In order to make this change, you have to modify the implementation sections of the units: iOSapi.CoreLocation and System.iOS.Sensors and completely redeclare CLLocationManager here, and add the new methods for the property.

Here is some sample code:

type
  // Reintroducing the entire CLLocationManager and CLLocationManagerDelegate in order to add allowsBackgroundLocationUpdates property
  CLLocationManager = interface(NSObject)
    ['{B162A514-4334-48B8-B31A-32926B758340}'] // New GUID
    function activityType : CLActivityType; cdecl;
    procedure allowDeferredLocationUpdatesUntilTraveled(distance: CLLocationDistance; timeout: NSTimeInterval); cdecl;
    function allowsBackgroundLocationUpdates: Boolean; cdecl; // New method for allowsBackgroundLocationUpdates property
    function delegate: Pointer; cdecl;
// snip
    procedure setActivityType(activityType: CLActivityType); cdecl;
    procedure setAllowsBackgroundLocationUpdates(allowsBackgroundLocationUpdates: Boolean); cdecl; // New method for allowsBackgroundLocationUpdates property
    procedure setDelegate(delegate: Pointer); cdecl;
// snip
  end;
  TCLLocationManager = class(TOCGenericImport<CLLocationManagerClass, CLLocationManager>)  end;
 
  CLLocationManagerDelegate = interface(IObjectiveC)
    ['{113A227F-AD2D-4983-83C3-C5158F394257}'] // New GUID
    procedure locationManager(manager: CLLocationManager; didFailWithError: NSError); overload; cdecl;
// snip
    [MethodName('locationManager:didFinishDeferredUpdatesWithError:')]
    procedure locationManagerDidFinishDeferredUpdatesWithError(manager: CLLocationManager; error: NSError); cdecl;
  end;

If you want to always set the authorization for allowsBackgroundLocationUpdates not only when the sensor is active, you have to modify TiOSLocationSensor.DoStart method.

if TOSVersion.Check(9) and (FLocater <> nil) then
  begin
    {$IF Defined(BACKGROUNDUPDATES) and Defined(CPUARM64)} // for some reason, this function crashes in 32-bit
    FLocater.setAllowsBackgroundLocationUpdates(True);
    {$ENDIF}
  end;
  // check authorization
  if Authorized = TAuthorizationType.atUnauthorized then
    SensorError(SLocationServiceUnauthorized);
// snip

Head over and check out the demo for Using Location Sensor in Background for Delphi Berlin with FireMonkey.

Mirror: Download the background location sensor demo for Delphi on IOS.

Optical Barcode Recognition Library For FireMonkey In Delphi 10 Berlin On Android

$
0
0
obr

obrUpdated library released by developer WinSoft for optical barcode recognition is now available for Delphi Berlin to use in your own applications. This library supports a variety of barcodes such as: PC-A, UPC-E, EAN-8, EAN-13, Code 39, Code 93, Code 128, Codabar, ITF, RSS-14, RSS-Expanded, QR Code, Data Matrix, Aztec and PDF 417. Some of the barcodes you can easily recognize like QR code, seen in many applications, mobile or desktop, Data Matrix code, used to store a large quantity of data or EAN-13 probably the most common. At the library core sits Zxing (“zebra crossing”) which is a powerful open-source, multi-format 1D/2D barcode image processing library implemented in Java. For those who develop mobile applications, the library is also available for Android platform (when deploying make sure you use Delphi Berlin and add core-3.3.1-SNAPSHOT.jar to your device) and C++ Builder. When using this library, you have the option to read a barcode by scanning it using the camera, taking a photo or just loading it from a picture file. For the developers who want to study the code, the full source for the library is provided but only in the full version and demos for Delphi and Android. Also, once you purchase the library, you can use it freely in your applications.

Head over to check out this optical barcode recognition library for Delphi 10 Berlin and Firemonkey.

Viewing all 97 articles
Browse latest View live