Book Image

Expert Delphi

By : Paweł Głowacki
Book Image

Expert Delphi

By: Paweł Głowacki

Overview of this book

Delphi is the most powerful Object Pascal IDE and component library for cross-platform native app development. It enables building natively compiled, blazingly fast apps for all major platforms including Android, iOS, Windows, Mac, and Linux. If you want to build server-side applications, create web services, and have clear GUIs for your project, then this book is for you. The book begins with a basic primer on Delphi helping you get accustomed to the IDE and the Object Pascal language and will then quickly move on to advanced-level concepts. Through this book, we’ll help you understand the architecture of applications and will teach you the important concepts of the FireMonkey library, show you how to build server-side services, and enable you to interact with the Internet of Things. Towards the end, you will learn to integrate your app with various web services and deploy them. By the end of the book, you will be able to build powerful, cross-platform, native apps for iOS and Android with a single code base.
Table of Contents (14 chapters)

Getting close with beacons

One of the most popular Bluetooth LE devices are beacons. With beacons it is possible to add precision location awareness to mobile apps. They are becoming increasingly popular, and more and more apps are using them. A beacon is any device that provides a standard Bluetooth LE proximity service. Beacons are a very important IoT technology. Different vendors offer beacons with different capabilities. Some of them are battery-powered, and others are using a USB connection for charging. Beacons do not use a lot of energy, so a small, watch-sized battery can last for more than a year or even longer.

The support for Bluetooth beacons in Delphi is very similar to other supported cross-platform frameworks. The key beacons related types and classes are defined in the System.Beacon unit. There is a non-visual TBeaconManager class with many virtual abstract methods...