sdk-maps / com.tomtom.online.sdk.map / MapFragment / newInstance

newInstance

@NonNull open static fun newInstance(): MapFragment

Create new instance of MapFragment.

@NonNull @DeprecatedSince(2020, 2) open static fun newInstance(keys: HashMap<String!, String!>!): MapFragment
Deprecated: Deprecated in Java

Create new instance of MapFragment with dynamic API Keys

Parameters

keys - HashMap<String!, String!>!: map containing api key values for "OnlineMaps.Key" & "OnlineTraffic.Key"

Return
MapFragment: mapFragment

@NonNull @DeprecatedSince(2020, 2) open static fun newInstance(styleUrl: String!): MapFragment
Deprecated: Deprecated in Java

Create new instance of MapFragment with custom style.

@NonNull @DeprecatedSince(2020, 2) open static fun newInstance(keys: HashMap<String!, String!>!, styleUrl: String!): MapFragment
Deprecated: Deprecated in Java

Create new instance of MapFragment with dynamic API Keys and custom style.

Parameters

keys - HashMap<String!, String!>!: map containing api key values for "OnlineMaps.Key" & "OnlineTraffic.Key"

styleUrl - String!:

Return
MapFragment: mapFragment

@NonNull open static fun newInstance(mapProperties: MapProperties!): MapFragment

Create new instance of MapFragment with desired initial properties.

Parameters

mapProperties - MapProperties!: initial map properties

Return
MapFragment: mapFragment