This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface | |
| uses | |
| IdStack; | |
| procedure GetLocalAddressList(const AAddresses: TIdStackLocalAddressList); | |
| implementation | |
| uses |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type | |
| TSomeObject = class(TObject) | |
| public | |
| procedure DoSomething; | |
| end; | |
| TFaultyObject = class(TObject) | |
| private | |
| FStrings: TStrings; | |
| public |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unit FrameworkInputPaneHandler; | |
| interface | |
| uses | |
| System.Win.ComObj, | |
| Winapi.Windows; | |
| // https://github.com/tpn/winsdk-10/blob/master/Include/10.0.10240.0/um/ShObjIdl.idl | |
| const |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type | |
| TNetResourceArray = TArray<TNetResource>; | |
| function EnumerateContainedPrinters(const AContainer: TNetResource): TNetResourceArray; | |
| var | |
| LResult, LBufferSize: DWORD; | |
| LEnumHandle: THandle; | |
| LNetResources: TNetResourceArray; | |
| I: Integer; | |
| LEntries : Longint; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type | |
| StringList = TArray<string>; | |
| StringListHelper = record helper for StringList | |
| public | |
| procedure Add(const AValue: string); | |
| end; | |
| { StringListHelper } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| uses | |
| Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.Os, Androidapi.JNI.JavaTypes, Androidapi.Helpers; | |
| procedure SendBroadcast(const AIntent: JIntent); | |
| var | |
| LResolveInfoList: JList; | |
| LResolveInfo: JResolveInfo; | |
| LComponentName: JComponentName; | |
| LExplicitIntent: JIntent; | |
| I: Integer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unit Unit1; | |
| interface | |
| uses | |
| System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, | |
| FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Controls.Presentation, FMX.StdCtrls; | |
| type | |
| ITest = interface(IInterface) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| uses | |
| System.Permissions; | |
| procedure TForm1.RequestCallPhonePermission; | |
| begin | |
| PermissionsService.RequestPermissions(['android.permission.CALL_PHONE'], | |
| procedure(const APermissions: TArray<string>; const AGrantResults: TArray<TPermissionStatus>) | |
| begin | |
| if AGrantResults[0] = TPermissionStatus.Granted then | |
| // Permission has been granted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| uses | |
| Androidapi.JNI.App, Androidapi.Helpers, Androidapi.JNI.GraphicsContentViewText; | |
| // Available memory in MB | |
| function GetMemory: Int64; | |
| var | |
| LMemoryInfo: JActivityManager_MemoryInfo; | |
| LActivityManager: JActivityManager; | |
| begin | |
| LActivityManager := TJActivityManager.Wrap(JObjectToID(TAndroidHelper.Context.getSystemService(TJActivity.JavaClass.ACTIVITY_SERVICE))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| uses | |
| Androidapi.JNI.WebKit; | |
| procedure TForm1.Button1Click(Sender: TObject); | |
| var | |
| LWebView: JWebView; | |
| begin | |
| if Supports(WebBrowser1, JWebView, LWebView) then | |
| LWebView.clearHistory; | |
| end; |
OlderNewer