title: Nativescript: is it possible to access android sdk function/class through typescript?
body: <p>Let's say I have this main component:</p>
  
  <pre><code>import { Component } from "@angular/core";
  
  @Component({
      selector: "my-app",
      templateUrl: "./layouts/main-layout.html"
  })
  export class AppComponent {
  
      constructor(
  
      ){}
  
      ngAfterViewInit() {
          //console.log( com.google.android.gms.maps.CameraUpdateFactory );
      }
  
  }
  </code></pre>
  
  <p>How can I call the commented-out function, right there in app.component.ts? </p>
  
  <p>Because it gives me <code>"com" not found</code> error. </p>
  
  <p>I have added <code>dependencies { compile 'com.google.android.gms:play-services-maps:9.8.0' }</code> in <code>App_Resources/Android/app.gradle</code> file.</p>
  
  <p>I have also checked how <code>nativescript-google-maps-sdk</code> plugin does it. It seems it does it the same way - it has its' own <code>nativescript-google-maps-sdk/platforms/android/include.gradle</code> file, where it also defines the google play service maps from local android sdk, and in <code>nativescript-google-maps-sdk/map-view.android.js</code> I see it is using such a command without problem: </p>
  
  <p><code>var cameraUpdate = com.google.android.gms.maps.CameraUpdateFactory.newCameraPosition( cameraPosition );</code></p>
  
  <p>Any insights much appreciated.</p>