FMX.Platform.IFMXMultiDisplayService.UpdateDisplayInformation

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure UpdateDisplayInformation;

C++

virtual void __fastcall UpdateDisplayInformation() = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Platform.pas
FMX.Platform.hpp
FMX.Platform IFMXMultiDisplayService

Description

Declares the method to reinitialize internal structures that keep information about parameters of multiple displays accessible on a desktop.

When your code accesses for the first time the Displays or DisplayCount property, the IFMXMultiDisplayService platform service initializes and fills with actual values the internal structures keeping corresponding information. When your code accesses again the Displays or DisplayCount property, IFMXMultiDisplayService calls UpdateDisplayInformation to reinitialize the internal structures and then again fills them with the information existing at the moment of access. That is, during the execution of your code, the system can plug in or disconnect displays and the IFMXMultiDisplayService platform service always retrieves the actual information. On mobile platforms, UpdateDisplayInformation is called automatically when a device is turned horizontally.

See Also