Platforms to show: All Mac Windows Linux Cross-Platform
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /iOS/DeviceCheck Test
This example is the version from Wed, 13th Oct 2020.
Project "DeviceCheck Test.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
EventHandler Sub Open()
MsgBox "Framework available: "+Str(DCDeviceMBS.available)
dc = DCDeviceMBS.currentDevice
MsgBox "Device supported: "+Str(dc.Supported)
// request token
dc.generateToken(AddressOf Completed)
End EventHandler
Sub Completed(token as MemoryBlock, error as NSErrorMBS, tag as Variant)
If error <> Nil Then
MsgBox error.LocalizedDescription
End If
If token <> Nil Then
MsgBox "Token: "+EncodeHex(token)
end if
Break
End Sub
Property DC As DCDeviceMBS
End Class
MenuBar MainMenuBar
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem EditSeparator1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem EditSeparator2 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
End Project
The items on this page are in the following plugins: MBS iOS Plugin.