Skip to content

egemenmede/ChangeOrientation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ChangeOrientation

ChangeOrientation Plugin (PhoneGap 2.2.0=<3.0.0)

ChangeOrientation, ANDROIDli cihazlar için PhoneGap 2.2.0=<3.0.0 sürümlerinde kullanabileceğiniz bir PhoneGap Pluginidir.

Uygulama içerisinde istediğiniz zaman cihazınızın konumunu Portrait ya da Landscape olarak değiştirmenizi sağlar.

PLUGIN KURULUMU

  1. changeorientation.js dosyasını HTML sayfasının içerisine ekleyin.
<script type="text/javascript" charset="utf-8" src="changeorientation.js"></script>
  1. ChangeOrientationPlugin.java dosyasını src klasöründe olduğu gibi com.dp.plugin.changeorientation packageinin altına ekleyin.

  2. res>xml>config.xml dosyasına plugini aşağıdaki gibi tanımlayın.

<feature name="ChangeOrientation">
      <param name="android-package" value="com.dp.plugin.changeorientation.ChangeOrientationPlugin" />
</feature>

PLUGINI PHONEGAP/CORDOVA 3.x UYUMLU HALE GETİRME

ChangeOrientationPlugin.java dosyası içerisinde import edilen kütüphaneleri

import org.apache.cordova.api.CallbackContext;
import org.apache.cordova.api.CordovaPlugin;

aşağıdakileri ile değiştirin.

import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;

Sorularınız için;

http://www.delipenguen.com ve PhoneGap/Cordova Geliştiricileri Türkiye Topluluğu (https://plus.google.com/communities/117075673032309282055)

About

ChangeOrientation Plugin (PhoneGap 2.2.0=<3.0.0)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published