Skip to content

Cross Platform Development

You can use any cross platform development tool if it supports using 3rd party's native libraries.

MAUI

MAUI is a cross platform development tool which supports native libraries via bindings. See MAUI's documents for more details. We have created NuGet packages that do the work of binding.

Supported Frameworks:

  • net8.0
  • net9.0
  • net10.0

Permissions

Please visit Develop via Android Studio for permission requirements, and Develop via Xcode for required Info.plist entries and AppStore submission instructions.

NuGet Package for iOS

com.brother.bms.iOSBindingLibrary.

NuGet Package for Android

com.brother.bms.androidBindingLibrary.

IMPORTANT NOTE:

If you are using an xxPrintSettings (RJPrintSettings, TDPrintSettings, PJ,PT,QL,MW etc...) object, you MUST set workpath before printing.

public static string? PrivateStorage(string location)
{
    AndroidOS.Content.Context context = AndroidOS.App.Application.Context;
    Java.IO.File? filesDir = context.GetExternalFilesDir(location);
    return filesDir?.ToString();
}
RJPrintSettings rjPrintSettings = new(PrinterModel.Rj4250wb)
{
    HalftoneThreshold = 128,
    Rotate180degrees = false,
    WorkPath = PrivateStorage(CommonStrings.WORKPATH),
};

Sample Code

Each NuGet Package has a README file that provides code samples.