android :: NativeContext :: defaultinit
android :: NativeContext :: wifi_manager
Handle to the WiFi system serviceandroid $ NativeContext :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
jvm :: JavaObject :: defaultinit
android :: NativeContext :: defaultinit
core :: Object :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
jvm :: JavaObject :: new_global_ref
Returns a global reference to the Java object behind this referencecore :: Object :: output_class_name
Display class name on stdout (debug only).jvm :: JavaObject :: pop_from_local_frame
Pops the current local reference frame and return a valid reference to selfjvm :: JavaObject :: pop_from_local_frame_with_env
Java implementation ofpop_from_local_frame
jvm :: JavaObject :: to_java_string
JavaString
representation of self
using Java's toString
android :: NativeContext :: wifi_manager
Handle to the WiFi system serviceandroid :: NativeNativeActivity
Android SDK'sandroid.app.NativeActivity
.
# An Android activity context
extern class NativeContext in "Java" `{ android.content.Context `}
super JavaObject
end
lib/android/activities.nit:20,1--23,3
redef extern class NativeContext
# Get the native AssetsManager of the application, used to initialize the nit's AssetManager
private fun assets: NativeAssetManager in "Java" `{
return self.getAssets();
`}
# Get the package name of the application
private fun package_name: JavaString in "Java" `{
return self.getPackageName();
`}
# Get the native ResourceManager of the application, used to initialize the nit's ResourceManager
private fun resources: NativeResources in "Java" `{
return self.getResources();
`}
end
lib/android/assets_and_resources.nit:416,1--432,3
redef class NativeContext
fun notification_manager: NativeNotificationManager in "Java" `{
return (NotificationManager)self.getSystemService(Context.NOTIFICATION_SERVICE);
`}
end
lib/android/notification/native_notification.nit:28,1--32,3
redef extern class NativeContext
private fun start_activity(intent: NativeIntent) in "Java" `{ self.startActivity(intent); `}
private fun start_service(intent: NativeIntent) in "Java" `{ self.startService(intent); `}
private fun stop_service(intent: NativeIntent) in "Java" `{ self.stopService(intent); `}
end
lib/android/intent/intent_api10.nit:1309,1--1313,3
redef class NativeContext
private fun start_service in "Java" `{
android.content.Intent intent =
new android.content.Intent(self, nit.app.NitService.class);
self.startService(intent);
`}
end
lib/android/service/service.nit:138,1--144,3
redef class NativeContext
# Handle to the WiFi system service
fun wifi_manager: NativeWifiManager in "Java" `{
return (android.net.wifi.WifiManager)
self.getSystemService(android.content.Context.WIFI_SERVICE);
`}
end
lib/android/wifi.nit:25,1--31,3