JubeatPlus 3.9.11
Loading...
Searching...
No Matches
SettingsMapViewController Class Reference

A view controller presenting collaboration and event spots on a map. More...

#include <SettingsMapViewController.h>

Inheritance diagram for SettingsMapViewController:
Collaboration diagram for SettingsMapViewController:

Instance Methods

(instancetype) - init
 Initialises the controller, its navigation-bar buttons, location manager, and spot store.
(void) - loadView
 Builds the map, loading indicator, and prompt label, sizing them to the device idiom.
(BOOL) - currentLocationEnabled
 Whether Core Location is enabled and authorised for use while in front.
(void) - requestList:
 Requests the spot list for a region, cancelling any request already in flight.
(void) - pushCurrent:
 Recentres the map on the current location, if enabled.
(void) - pushCorabo:
 Recentres the map on the "Corabo" collaboration position.
(void) - locationManager:didChangeAuthorizationStatus:
 Starts observing the user location once authorisation is granted.
(void) - observeValueForKeyPath:ofObject:change:context:
 Recentres on the first user-location fix, then stops observing.
(void) - mapView:regionDidChangeAnimated:
 Refreshes the visible annotations when the region changes, refetching if the map has moved far enough.
(nullable MKAnnotationView *) - mapView:viewForAnnotation:
 Builds the pin view for a spot annotation.
(void) - mapView:annotationView:calloutAccessoryControlTapped:
 Opens the tapped spot in Google Maps after confirming with an alert.
(void) - alertSelect:
 Opens the pending map URL when the confirmation alert's second button is chosen.
(void) - downloaderFinished:
 Parses the finished download into spot annotations, or the Corabo position.
(void) - downloaderError:
 Stops the indicator when the spot-list download fails.
(void) - viewDidLoad
 Centres the map on the initial region and requests its spot list.
(void) - viewDidUnload
 Stops observing the user location and releases the map, indicator, and label.
(void) - viewWillAppear:
 Forwards to the superclass.
(void) - viewDidAppear:
 Starts observing the user location if needed and briefly ignores interaction events.
(void) - viewWillDisappear:
 Stops observing the user location and drops the map delegate.
(void) - viewDidDisappear:
 Forwards to the superclass.
(BOOL) - shouldAutorotateToInterfaceOrientation:
 Whether to rotate to a given interface orientation; portrait orientations only.
(UIInterfaceOrientationMask) - supportedInterfaceOrientations
 The supported interface orientations: portrait and portrait-upside-down.
(BOOL) - shouldAutorotate
 Whether the controller supports autorotation; always YES.
(void) - dealloc
 Stops observing, drops the map delegate, and cancels the spot-list download.
(void) - mapClose
 Closes the map; a no-op in the shipped binary.
Instance Methods inherited from <AlertViewManagerDelegate>
(void) - alertSelect:
 Sent when the user taps a button in an alert built with makeAlert:.
(void) - alertClose:
 Sent when a UIAlertController -based alert finishes dismissing.
Instance Methods inherited from <DownloaderDelegate>
(void) - downloaderProceed:
 Sent periodically as data arrives, and once more on completion.

Properties

MKMapView * mapView
 The map presenting the spot annotations.
UIActivityIndicatorView * indicator
 The loading indicator shown while the spot list downloads.
UILabel * messageLabel
 The label prompting the user to zoom in when the region is too wide.
CLLocationManager * locationManager
 The location manager used to request and track authorisation.
Downloader * listDownloader
 The downloader fetching the spot list.
NSMutableDictionary * dictSpot
 The spots keyed by identifier, so each is dropped only once.
NSString * mapURL
 The Google Maps URL opened from a spot's callout accessory.

Detailed Description

A view controller presenting collaboration and event spots on a map.

Method Documentation

◆ alertSelect:

- (void) alertSelect: (NSDictionary *) info

Opens the pending map URL when the confirmation alert's second button is chosen.

Parameters
infoThe alert result, whose btnMessage carries the chosen button index.
Ghidra address:
0x11802c
Ghidra address:
0x11802c

◆ currentLocationEnabled

- (BOOL) currentLocationEnabled

Whether Core Location is enabled and authorised for use while in front.

Returns
YES when location services are on and authorisation is granted.
Ghidra address:
0x116dc0
Ghidra address:
0x116dc0

◆ dealloc

- (void) dealloc

Stops observing, drops the map delegate, and cancels the spot-list download.

Ghidra address:
0x119114

◆ downloaderError:

- (void) downloaderError: (id) downloader

Stops the indicator when the spot-list download fails.

Parameters
downloaderThe downloader that errored.
Ghidra address:
0x118bf4
Ghidra address:
0x118bf4

Reimplemented from <DownloaderDelegate>.

◆ downloaderFinished:

- (void) downloaderFinished: (id) downloader

Parses the finished download into spot annotations, or the Corabo position.

Parameters
downloaderThe downloader that finished.
Ghidra address:
0x118158
Ghidra address:
0x118158

Reimplemented from <DownloaderDelegate>.

◆ init

- (instancetype) init

Initialises the controller, its navigation-bar buttons, location manager, and spot store.

Returns
The initialised controller.
Ghidra address:
0x11610c
Ghidra address:
0x11610c

◆ loadView

- (void) loadView

Builds the map, loading indicator, and prompt label, sizing them to the device idiom.

Ghidra address:
0x11659c

◆ locationManager:didChangeAuthorizationStatus:

- (void) locationManager: (CLLocationManager *) manager
didChangeAuthorizationStatus: (CLAuthorizationStatus) status 

Starts observing the user location once authorisation is granted.

Parameters
managerThe location manager reporting the change.
statusThe new authorisation status.
Ghidra address:
0x117174
Ghidra address:
0x117174

◆ mapClose

- (void) mapClose

Closes the map; a no-op in the shipped binary.

Ghidra address:
0x11923c

◆ mapView:annotationView:calloutAccessoryControlTapped:

- (void) mapView: (MKMapView *) mapView
annotationView: (MKAnnotationView *) view
calloutAccessoryControlTapped: (UIControl *) control 

Opens the tapped spot in Google Maps after confirming with an alert.

Parameters
mapViewThe map whose callout accessory was tapped.
viewThe annotation view whose accessory was tapped.
controlThe tapped accessory control.
Ghidra address:
0x117cb8
Ghidra address:
0x117cb8

◆ mapView:regionDidChangeAnimated:

- (void) mapView: (MKMapView *) mapView
regionDidChangeAnimated: (BOOL) animated 

Refreshes the visible annotations when the region changes, refetching if the map has moved far enough.

Parameters
mapViewThe map whose region changed.
animatedWhether the change was animated.
Ghidra address:
0x117394
Ghidra address:
0x117394

◆ mapView:viewForAnnotation:

- (MKAnnotationView *) mapView: (MKMapView *) mapView
viewForAnnotation: (id<MKAnnotation>) annotation 

Builds the pin view for a spot annotation.

Parameters
mapViewThe map requesting the view.
annotationThe annotation to build a view for.
Returns
The annotation view, or nil for the user-location annotation.
Ghidra address:
0x1179f4
Ghidra address:
0x1179f4

◆ observeValueForKeyPath:ofObject:change:context:

- (void) observeValueForKeyPath: (nullable NSString *) keyPath
ofObject: (nullable id) object
change: (nullable NSDictionary *) change
context: (nullable void *) context 

Recentres on the first user-location fix, then stops observing.

Parameters
keyPathThe observed key path.
objectThe observed object.
changeThe change dictionary.
contextThe observer context.
Ghidra address:
0x117248

◆ pushCorabo:

- (void) pushCorabo: (nullable id) sender

Recentres the map on the "Corabo" collaboration position.

Parameters
senderThe button that triggered the action.
Ghidra address:
0x11711c

◆ pushCurrent:

- (void) pushCurrent: (nullable id) sender

Recentres the map on the current location, if enabled.

Parameters
senderThe button that triggered the action.
Ghidra address:
0x117034

◆ requestList:

- (void) requestList: (MKCoordinateRegion) region

Requests the spot list for a region, cancelling any request already in flight.

Parameters
regionThe map region to request spots for; retained as the last requested region.
Ghidra address:
0x116e2c
Ghidra address:
0x116e2c

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the controller supports autorotation; always YES.

Returns
Always YES.
Ghidra address:
0x11910c
Ghidra address:
0x11910c

◆ shouldAutorotateToInterfaceOrientation:

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation

Whether to rotate to a given interface orientation; portrait orientations only.

Parameters
interfaceOrientationThe orientation to test.
Ghidra address:
0x1190f4
Ghidra address:
0x1190f4

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The supported interface orientations: portrait and portrait-upside-down.

Returns
Both portrait orientations.
Ghidra address:
0x119104
Ghidra address:
0x119104

◆ viewDidAppear:

- (void) viewDidAppear: (BOOL) animated

Starts observing the user location if needed and briefly ignores interaction events.

Parameters
animatedWhether the appearance is animated.
Ghidra address:
0x118ec0
Ghidra address:
0x118ec0

◆ viewDidDisappear:

- (void) viewDidDisappear: (BOOL) animated

Forwards to the superclass.

Parameters
animatedWhether the disappearance is animated.
Ghidra address:
0x1190bc
Ghidra address:
0x1190bc

◆ viewDidLoad

- (void) viewDidLoad

Centres the map on the initial region and requests its spot list.

Ghidra address:
0x118cac

◆ viewDidUnload

- (void) viewDidUnload

Stops observing the user location and releases the map, indicator, and label.

Ghidra address:
0x118d90

◆ viewWillAppear:

- (void) viewWillAppear: (BOOL) animated

Forwards to the superclass.

Parameters
animatedWhether the appearance is animated.
Ghidra address:
0x118e88
Ghidra address:
0x118e88

◆ viewWillDisappear:

- (void) viewWillDisappear: (BOOL) animated

Stops observing the user location and drops the map delegate.

Parameters
animatedWhether the disappearance is animated.
Ghidra address:
0x118ff0
Ghidra address:
0x118ff0

Property Documentation

◆ dictSpot

- (NSMutableDictionary*) dictSpot
readwritenonatomicstrong

The spots keyed by identifier, so each is dropped only once.

Ghidra address:
0x1192f4

◆ indicator

- (UIActivityIndicatorView*) indicator
readwritenonatomicstrong

The loading indicator shown while the spot list downloads.

Ghidra address:
0x119264

◆ listDownloader

- (Downloader*) listDownloader
readwritenonatomicstrong

The downloader fetching the spot list.

Ghidra address:
0x1192d0

◆ locationManager

- (CLLocationManager*) locationManager
readwritenonatomicstrong

The location manager used to request and track authorisation.

Ghidra address:
0x1192ac

◆ mapURL

- (NSString*) mapURL
readwritenonatomicstrong

The Google Maps URL opened from a spot's callout accessory.

Ghidra address:
0x119318

◆ mapView

- (MKMapView*) mapView
readwritenonatomicstrong

The map presenting the spot annotations.

Ghidra address:
0x119240

◆ messageLabel

- (UILabel*) messageLabel
readwritenonatomicstrong

The label prompting the user to zoom in when the region is too wide.

Ghidra address:
0x119288

The documentation for this class was generated from the following files: