MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
Instance Methods | Class Methods | Properties | List of all members
MPFloorSelectorControl Class Reference

#include <MPFloorSelectorControl.h>

Inheritance diagram for MPFloorSelectorControl:
<MPFloorSelectorProtocol>

Instance Methods

(void) - notifyFloorSelect:
 
(void) - addToMap:
 
(void) - addToView:
 
(void) - updateFrame
 
(void) - setUserFloor:
 
- Instance Methods inherited from <MPFloorSelectorProtocol>
(void) - setFloor:
 
(void) - updateFloors:
 
(void) - deactivate
 

Class Methods

(nullable UIColor *) + selectedColor
 
(void) + setSelectedColor:
 
(nullable UIColor *) + tintColor
 
(void) + setTintColor:
 

Properties

UIColor * floorButtonTitleColor
 
UIColor * selectedFloorButtonTitleColor
 
UIColor * userFloorColor
 
UIColor * floorButtonBackgroundColor
 
UIColor * selectedFloorButtonBackgroundColor
 
NSInteger floorButtonBorderPadding
 
NSNumber * currentFloor
 
NSNumber * fromFloorIndex
 
NSNumber * nFloors
 
NSNumber * buttonSize
 
NSArray * buttons
 
UIImage * topIcon
 
UIImageView * topImageView
 
CGFloat maxHeight
 
BOOL disableAutomaticLayoutManagement
 
- Properties inherited from <MPFloorSelectorProtocol>
id< MPFloorSelectorDelegatedelegate
 

Detailed Description

Floor selection UI element. Can be added to the map, but should be linked to an MPBuilding to make sense.

Method Documentation

◆ addToMap:

- (void) addToMap: (nonnull GMSMapView *) map

Add the floor selector to a map.

Parameters
mapThe map that should hold the floor selector.
Deprecated

◆ addToView:

- (void) addToView: (nonnull UIView *) view

Add the floor selector to a view.

Parameters
viewThe view that should hold the floor selector.
Deprecated

◆ notifyFloorSelect:

- (void) notifyFloorSelect: (nonnull id) sender

Method that fires when a floor button is pressed.

Parameters
senderThe button tapped

◆ selectedColor

+ (nullable UIColor *) selectedColor

Get the background color for the selected floor button.

◆ setSelectedColor:

+ (void) setSelectedColor: (nullable UIColor *) value

Set the background color for the selected floor button.

◆ setTintColor:

+ (void) setTintColor: (nullable UIColor *) value

Set the tint color for the floor buttons.

◆ setUserFloor:

- (void) setUserFloor: (nonnull NSNumber *) floorIndex

Sets the floor index that the user/device is located. This value is used to provide an indicator on the floor selector, regardless of the floor actually displayed

◆ tintColor

+ (nullable UIColor *) tintColor

Get the tint color for the floor buttons.

◆ updateFrame

- (void) updateFrame

Update the floor selector view frame. Needed upon switch to landscape/portrait

Property Documentation

◆ buttons

- (NSArray*) buttons
readwritenonatomicstrong

Array of the floor selector buttons.

◆ buttonSize

- (NSNumber*) buttonSize
readwritenonatomicstrong

The size of a single floor button (buttonSize x buttonSize).

◆ currentFloor

- (NSNumber*) currentFloor
readwritenonatomicstrong

The current floor.

◆ disableAutomaticLayoutManagement

- (BOOL) disableAutomaticLayoutManagement
readwritenonatomicassign

◆ floorButtonBackgroundColor

- (UIColor*) floorButtonBackgroundColor
readwritenonatomicassign

The backgroundColor of floor selector buttons in normal state.

◆ floorButtonBorderPadding

- (NSInteger) floorButtonBorderPadding
readwritenonatomicassign

The padding around floor selector buttons. Defaults to 1.

◆ floorButtonTitleColor

- (UIColor*) floorButtonTitleColor
readwritenonatomicassign

The textColor of floor selector buttons in normal state.

◆ fromFloorIndex

- (NSNumber*) fromFloorIndex
readwritenonatomicstrong

Floor index to start from (typically 0).

◆ maxHeight

- (CGFloat) maxHeight
readwritenonatomicassign

The maximum height that the floor selector may occupy

◆ nFloors

- (NSNumber*) nFloors
readwritenonatomicstrong

The number of floors.

◆ selectedFloorButtonBackgroundColor

- (UIColor*) selectedFloorButtonBackgroundColor
readwritenonatomicassign

The backgroundColor of floor selector buttons in selected state.

◆ selectedFloorButtonTitleColor

- (UIColor*) selectedFloorButtonTitleColor
readwritenonatomicassign

The textColor of floor selector buttons in selected state.

◆ topIcon

- (UIImage*) topIcon
readwritenonatomicstrong

The top icon image.

◆ topImageView

- (UIImageView*) topImageView
readnonatomicweak

UIImageView containing the top image.

◆ userFloorColor

- (UIColor*) userFloorColor
readwritenonatomicassign

The color of the indicator current user location floor.