public class ServerListDialog
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ServerListDialog.Callback
Callback for when a server is selected
|
Constructor and Description |
---|
ServerListDialog(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getBaseUrl(NetConnectString ncs) |
static java.lang.String |
getBaseUrl(java.lang.String server) |
static java.lang.String |
getBaseUrl(TAKServer server) |
void |
promptNetworkSettings() |
static void |
selectServer(android.content.Context context,
java.lang.String message,
CotPortListActivity.CotPort[] servers,
ServerListDialog.Callback callback)
Deprecated.
Use above method instead
|
void |
show(java.lang.String title,
ServerListDialog.Callback callback) |
void |
show(java.lang.String title,
TAKServer[] servers,
ServerListDialog.Callback callback)
Display dialog to select a server, and pass it to a callback
|
public ServerListDialog(MapView mapView)
public void show(java.lang.String title, TAKServer[] servers, ServerListDialog.Callback callback)
title
- Dialog titleservers
- List of serverscallback
- Selection callbackpublic void show(java.lang.String title, ServerListDialog.Callback callback)
public void promptNetworkSettings()
@Deprecated public static void selectServer(android.content.Context context, java.lang.String message, CotPortListActivity.CotPort[] servers, ServerListDialog.Callback callback)
public static java.lang.String getBaseUrl(TAKServer server)
public static java.lang.String getBaseUrl(java.lang.String server)
public static java.lang.String getBaseUrl(NetConnectString ncs)