C# Class SensorbergSimpleApp.MainPage

Application main page.
Inheritance: Windows.UI.Xaml.Controls.Page
Datei anzeigen Open project: sensorberg-dev/windows10-sdk

Public Properties

Property Type Description
LogEntryItemCollectionProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Property Type Description
AddLogEntry void
OnBeaconActionResolvedAsync void
OnBeaconEventAsync void
OnFailedToResolveBeaconActionAsync void
OnScannerStatusChangedAsync void
OnToggleBackgroundTaskButtonClicked void
SetBackgroundTaskEnabledAsync void

Public Methods

Method Description
MainPage ( ) : SensorbergSDK

Constructor.

Protected Methods

Method Description
OnNavigatedTo ( NavigationEventArgs e ) : void

Private Methods

Method Description
AddLogEntry ( string message ) : void
OnBeaconActionResolvedAsync ( object sender, BeaconAction e ) : void

Handles incoming beacon actions, when the application is running.

OnBeaconEventAsync ( object sender, BeaconEventArgs e ) : void

Called when the scanner detects a beacon.

OnFailedToResolveBeaconActionAsync ( object sender, string e ) : void

Normally we would not care about this, but for demonstrative purposes lets log these events too.

OnScannerStatusChangedAsync ( object sender, ScannerStatus e ) : void

Called when the status of the scanner is changed.

OnToggleBackgroundTaskButtonClicked ( object sender, RoutedEventArgs e ) : void

Enables/disables the background task.

SetBackgroundTaskEnabledAsync ( bool enabled ) : void

Method Details

MainPage() public method

Constructor.
public MainPage ( ) : SensorbergSDK
return SensorbergSDK

OnNavigatedTo() protected method

protected OnNavigatedTo ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs
return void

Property Details

LogEntryItemCollectionProperty public_oe static_oe property

public static DependencyProperty,Windows.UI.Xaml LogEntryItemCollectionProperty
return Windows.UI.Xaml.DependencyProperty