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

newInstance

@NonNull open static fun newInstance(): MapFragment

Create new instance of MapFragment.

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

Create a 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.02") open static fun newInstance(styleUrl: String!): MapFragment
Deprecated: Deprecated in Java

Create a new instance of MapFragment with custom style.

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

Create a 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