SpiderBasic 2.10 beta 1 est disponible sur votre compte
Cordova pour android et des nouvelles bibliothèques vous attendent

Le , par comtois, Responsable Purebasic
Je fais l'annonce vite fait, je ferai mieux pour la version finale. Vous trouverez des exemples et plus d'infos ici

Voici la liste des nouveautés :

- Added: Accelerometer library
- Added: Geolocation library
- Added: InAppPurchase support for iOS
- Added: BatteryLevel(), DeviceInfo(), VibrateDevice()
- Added: #PB_String_PlaceHolder flag to StringGadget() to set a placeholder at creation
- Added: #PB_Event_SizeDesktop event to monitor a desktop resize without having a background window
- Added: ResizeScreen() to resize an already created screen
- Added: Cordova command can be executed via Import/EndImport
- Added: Android app is immediately run on the device once deployed

- Changed: reworked the InAppPurchase library
- Changed: switched from crosswalk to cordova on Windows for Android. NOTE: cordova requires internet connection to build an app.

- Optimized: Android app size is now much smaller (1,5 MB instead of 20 MB)

- Removed: TouchRadiusX() and TouchRadiusY() as it was only working on FireFox

- Fixed: some compiler and library bugs

Source de l'information


Vous avez aimé cette actualité ? Alors partagez-la avec vos amis en cliquant sur les boutons ci-dessous :


 Poster une réponse

Avatar de comtois comtois - Responsable Purebasic https://www.developpez.com
le 10/04/2017 à 14:00
Un petit exemple de Fred pour tester les nouvelles fonctions (accéléromètre, géolocalisation, etc)

Code : Sélectionner tout
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Procedure Events()
 
  Select EventGadget()
    Case 0
      VibrateDevice(1000)
 
    Case 1
      Debug DeviceInfo(#PB_Device_Model)
      Debug DeviceInfo(#PB_Device_Platform)
      Debug DeviceInfo(#PB_Device_UUID)
      Debug DeviceInfo(#PB_Device_Version)
      Debug DeviceInfo(#PB_Device_Manufacturer)
      Debug DeviceInfo(#PB_Device_Serial)
 
    Case 2
      Debug BatteryLevel()
 
    Case 3
      Debug "AccelerometerX: " + AccelerometerX()
      Debug "AccelerometerY: " + AccelerometerY()
      Debug "AccelerometerZ: " + AccelerometerZ()
      Debug "AccelerometerTime: " + AccelerometerTime()
 
    Case 4
      Debug "GeolocationLatitude: " + GeolocationLatitude()
      Debug "GeolocationLongitude: " + GeolocationLongitude()
      Debug "GeolocationAltitude: " + GeolocationAltitude()
      Debug "GeolocationSpeed: " + GeolocationSpeed()     
      Debug "GeolocationHeading: " + GeolocationHeading()     
      Debug "GeolocationTime: " + GeolocationTime()     
 
  EndSelect
 
EndProcedure
 
Procedure OnSizeDesktop()
  Debug "size desktop"
  ExamineDesktops()
  Debug "DesktopWidth(): " + DesktopWidth(0)
  Debug "DesktopHeight(): " + DesktopHeight(0)
EndProcedure
 
 
OpenWindow(0, 0, 0, 300, 205, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
 
ButtonGadget(0, 0, 0, 300, 25, "Vibrate")
ButtonGadget(1, 0, 30, 300, 25, "SystemInfo")
ButtonGadget(2, 0, 60, 300, 25, "BatteryLevel")
ButtonGadget(3, 0, 90, 300, 25, "Accelerometer")
ButtonGadget(4, 0, 120, 300, 25, "Geolocation")
StringGadget(5, 0, 150, 300, 50, "Geolocation", #PB_String_PlaceHolder)
 
StartAccelerometer(100)
StartGeolocation(30000)
 
BindEvent(#PB_Event_Gadget, @Events())
BindEvent(#PB_Event_SizeDesktop, @OnSizeDesktop())
Offres d'emploi IT
Data scientist senior H/F
Safran - Ile de France - Magny-les-Hameaux (Saclay)
Ingénieur intégration, validation, qualification du système de drone H/F
Safran - Ile de France - Éragny (95610)
Responsable protection des données H/F
Safran - Ile de France - Magny-les-Hameaux (78114)

Voir plus d'offres Voir la carte des offres IT
Responsable bénévole de la rubrique PureBasic : comtois -